extract xdg-dirs
This commit is contained in:
parent
2649edfb47
commit
f8e4e5344e
4 changed files with 28 additions and 21 deletions
26
user/xdg-dirs.nix
Normal file
26
user/xdg-dirs.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
HOME = config.home.homeDirectory;
|
||||
in
|
||||
{
|
||||
xdg = {
|
||||
userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
|
||||
desktop = "${HOME}/Área de trabalho";
|
||||
documents = "${HOME}/Documentos";
|
||||
download = "${HOME}/Downloads";
|
||||
music = "${HOME}/Música";
|
||||
pictures = "${HOME}/Imagens";
|
||||
publicShare = "${HOME}/Público";
|
||||
templates = "${HOME}/Modelos";
|
||||
videos = "${HOME}/Vídeos";
|
||||
};
|
||||
};
|
||||
|
||||
home.sessionVariables = {
|
||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
||||
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue