pam: Use freebsd.pam on FreeBSD

FreeBSD pam is based on openpam, but is not exactly the same.
Use FreeBSD pam for better compatibility with existing FreeBSD
configurations and code.
This commit is contained in:
Artemis Tosini
2024-12-07 04:51:00 +00:00
parent 0abc80da7f
commit 45691701c3
+7 -1
View File
@@ -12572,7 +12572,13 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
pam = if stdenv.hostPlatform.isLinux then linux-pam else openpam;
pam =
if stdenv.hostPlatform.isLinux then
linux-pam
else if stdenv.hostPlatform.isFreeBSD then
freebsd.libpam
else
openpam;
# pam_bioapi ( see http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader )