nixos/system-environment: introduce environment.profileRelativeSessionVariables

There is a need for having sessionVariables set relative to the Nix Profiles.
Such as in #68383.
This commit is contained in:
Robert Helgesson
2019-09-18 11:09:43 -04:00
committed by worldofpeace
parent f7571a06af
commit 866cc3e792
7 changed files with 73 additions and 15 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ let
# Session management.
${optionalString cfg.setEnvironment ''
session required pam_env.so envfile=${config.system.build.pamEnvironment}
session required pam_env.so conffile=${config.system.build.pamEnvironment} readenv=0
''}
session required pam_unix.so
${optionalString cfg.setLoginUid