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;
|
||||
wallpapers = inputs.wallpapers;
|
||||
};
|
||||
users.${user} = {
|
||||
users.${user} = let
|
||||
username = user;
|
||||
homeDirectory = "/home/${user}";
|
||||
in {
|
||||
imports =
|
||||
[ ./home/shell/${shell}.nix ./hosts/${hostName}/home.nix ]
|
||||
++ homeModules;
|
||||
home = {
|
||||
inherit stateVersion;
|
||||
username = user;
|
||||
homeDirectory = nixpkgs.lib.mkDefault "/home/${user}";
|
||||
};
|
||||
home = { inherit username homeDirectory stateVersion; };
|
||||
programs.home-manager.enable = true;
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
createDirectories = true;
|
||||
extraConfig = {
|
||||
XDG_PROJECTS_DIR = "${homeDirectory}/Projects";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue