3
0
Fork 0
forked from mirrors/nixpkgs

Fix PAM resource limits

This commit is contained in:
Eelco Dolstra 2013-10-17 15:26:48 +02:00
parent b19d8e0fcd
commit af8fc748dd

View file

@ -202,7 +202,7 @@ let
${optionalString cfg.forwardXAuth
"session optional pam_xauth.so xauthpath=${pkgs.xorg.xauth}/bin/xauth systemuser=99"}
${optionalString (cfg.limits != [])
"session required ${pkgs.pam}/lib/security/pam_limits.so conf=${makeLimitsConf limits}"}
"session required ${pkgs.pam}/lib/security/pam_limits.so conf=${makeLimitsConf cfg.limits}"}
${optionalString (cfg.showMotd && config.users.motd != null)
"session optional ${pkgs.pam}/lib/security/pam_motd.so motd=${motd}"}
'';