nixos/cage: supply pamEnvironment

Without this, you don’t get any of the sessionVariables in the cage
application. Things like XDG_DATA_DIRS, XCURSOR_PATH, etc. are
missing.
This commit is contained in:
Matthew Bauer 2020-08-24 19:17:22 -05:00
parent d436e93027
commit fe8d0c2e0b

View File

@ -82,6 +82,7 @@ in {
auth required pam_unix.so nullok auth required pam_unix.so nullok
account required pam_unix.so account required pam_unix.so
session required pam_unix.so session required pam_unix.so
session required pam_env.so conffile=${config.system.build.pamEnvironment} readenv=0
session required ${pkgs.systemd}/lib/security/pam_systemd.so session required ${pkgs.systemd}/lib/security/pam_systemd.so
''; '';