diff --git a/flake.nix b/flake.nix index 15172e4f..853b9296 100644 --- a/flake.nix +++ b/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"; + }; + }; }; }; };