Add xdg.userDirs to home-manager
This commit is contained in:
parent
b515145f37
commit
98353e7141
18
flake.nix
18
flake.nix
|
@ -181,16 +181,22 @@
|
||||||
anyrun = inputs.anyrun;
|
anyrun = inputs.anyrun;
|
||||||
wallpapers = inputs.wallpapers;
|
wallpapers = inputs.wallpapers;
|
||||||
};
|
};
|
||||||
users.${user} = {
|
users.${user} = let
|
||||||
|
username = user;
|
||||||
|
homeDirectory = "/home/${user}";
|
||||||
|
in {
|
||||||
imports =
|
imports =
|
||||||
[ ./home/shell/${shell}.nix ./hosts/${hostName}/home.nix ]
|
[ ./home/shell/${shell}.nix ./hosts/${hostName}/home.nix ]
|
||||||
++ homeModules;
|
++ homeModules;
|
||||||
home = {
|
home = { inherit username homeDirectory stateVersion; };
|
||||||
inherit stateVersion;
|
|
||||||
username = user;
|
|
||||||
homeDirectory = nixpkgs.lib.mkDefault "/home/${user}";
|
|
||||||
};
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
xdg.userDirs = {
|
||||||
|
enable = true;
|
||||||
|
createDirectories = true;
|
||||||
|
extraConfig = {
|
||||||
|
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue