From 259c3db68975f45f2f9aa6662ea67dd99d9e7543 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Tue, 31 Jul 2018 16:11:20 +0200 Subject: [PATCH] home-environment: use generation path as profile path --- modules/home-environment.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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