1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-01 04:23:34 +02: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