home-environment: use generation path as profile path
This commit is contained in:
parent
4b7809efff
commit
259c3db689
|
@ -269,7 +269,10 @@ in
|
||||||
home.username = mkDefault (builtins.getEnv "USER");
|
home.username = mkDefault (builtins.getEnv "USER");
|
||||||
home.homeDirectory = mkDefault (builtins.getEnv "HOME");
|
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 =
|
home.sessionVariables =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue