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