This commit is contained in:
2024-05-26 08:00:18 +00:00
parent 57d6a9a4c3
commit 3a045f4d88

View File

@@ -53,7 +53,8 @@ in
])) services; ])) services;
in lib.mapAttrs (_serviceName: service: service // { in lib.mapAttrs (_serviceName: service: service // {
# replace references with the old pam_unix, which calls into /run/wrappers/bin/unix_chkpwd, # replace references with the old pam_unix, which calls into /run/wrappers/bin/unix_chkpwd,
# with a pam_unix that calls until unix_chkpwd via the nix store. # with a pam_unix that calls into unix_chkpwd via the nix store.
# TODO: use `security.pam.package` instead once <https://github.com/NixOS/nixpkgs/pull/314791> lands.
text = lib.replaceStrings [" pam_unix.so" ] [ " ${suidlessPam}/lib/security/pam_unix.so" ] service.text; text = lib.replaceStrings [" pam_unix.so" ] [ " ${suidlessPam}/lib/security/pam_unix.so" ] service.text;
}) filtered; }) filtered;
}; };