3
0
Fork 0
forked from mirrors/nixpkgs

* Turn on pam_env for everything.

svn path=/nixos/trunk/; revision=7817
This commit is contained in:
Eelco Dolstra 2007-01-30 14:58:04 +00:00
parent b0b776c04a
commit 2c41edd1bc
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ let
optional = option: file:
if config.get option then [file] else [];
defaultEnv = pkgs.writeText "environment" "
envConf = pkgs.writeText "environment" "
PATH=${systemPath}/bin:${systemPath}/sbin
";
@ -135,7 +135,7 @@ import ../helpers/make-etc.nix {
then pkgs.pam_ldap
else "/no-such-path";
inherit (pkgs.xorg) xauth;
inherit defaultEnv;
inherit envConf;
};
target = "pam.d/" + program;
}

View file

@ -1,2 +1,3 @@
auth optional @pam_ldap@/lib/security/pam_ldap.so
session required @pam_unix2@/lib/security/pam_unix2.so
session optional pam_env.so envfile=@envConf@

View file

@ -2,4 +2,3 @@ auth include common-auth
account include common-account
password include common-password
session include common-session
session optional pam_env.so envfile=@defaultEnv@