diff --git a/modules/home-environment.nix b/modules/home-environment.nix index 05931c09..572814bf 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -269,7 +269,10 @@ in home.username = mkDefault (builtins.getEnv "USER"); home.homeDirectory = mkDefault (builtins.getEnv "HOME"); - home.profileDirectory = cfg.homeDirectory + "/.nix-profile"; + home.profileDirectory = + if config.submoduleSupport.enable + then config.home.path + else cfg.homeDirectory + "/.nix-profile"; home.sessionVariables = let