diff options
author | Robert Helgesson <robert@rycee.net> | 2020-06-17 23:33:13 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2020-07-14 23:31:20 +0200 |
commit | a49ce0e9edcd717ce6e66041aabd656c02903904 (patch) | |
tree | 7016517eb1ba3ba9f3083af26500067efd889a66 /modules/home-environment.nix | |
parent | 1a8ab9d9deeb222716f9544a67ea19d1a7a43bbd (diff) |
home-environment: use per-user profile path in /etc
Before the profile directory value would point directly to the build
output in the Nix store. Unfortunately this would cause an infinite
loop if the user's configuration directly or indirectly refers to the
profile directory value.
Fixes #1188
Diffstat (limited to 'modules/home-environment.nix')
-rw-r--r-- | modules/home-environment.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/home-environment.nix b/modules/home-environment.nix index d868ee42312..209df4ffcfe 100644 --- a/modules/home-environment.nix +++ b/modules/home-environment.nix @@ -402,7 +402,7 @@ in home.profileDirectory = if config.submoduleSupport.enable && config.submoduleSupport.externalPackageInstall - then config.home.path + then "/etc/profiles/per-user/${cfg.username}" else cfg.homeDirectory + "/.nix-profile"; home.sessionVariables = |