forked from mirrors/nixpkgs
nixos/pam: fix pam_mount called multiple times
fixes automatic unmounting with pam_mount by preventing it to be called multiple times at login
This commit is contained in:
parent
aab655c554
commit
b20a1c34c2
|
@ -594,6 +594,7 @@ let
|
|||
session optional ${pkgs.ecryptfs}/lib/security/pam_ecryptfs.so
|
||||
'' +
|
||||
optionalString cfg.pamMount ''
|
||||
session [success=1 default=ignore] ${pkgs.pam}/lib/security/pam_succeed_if.so service = systemd-user quiet
|
||||
session optional ${pkgs.pam_mount}/lib/security/pam_mount.so disable_interactive
|
||||
'' +
|
||||
optionalString use_ldap ''
|
||||
|
|
Loading…
Reference in a new issue