home-environment: use generation path as profile path

This commit is contained in:
Robert Helgesson 2018-07-31 16:11:20 +02:00
parent 4b7809efff
commit 259c3db689
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 4 additions and 1 deletions

View File

@ -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