1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-26 21:19:45 +01:00

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

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