Add xdg.userDirs to home-manager

This commit is contained in:
Evie Litherland-Smith 2023-09-11 07:37:08 +01:00
parent b515145f37
commit 98353e7141

View file

@ -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";
};
};
};
};
};