nixcfg/nixosModules/desktop/gnome/fprintdFix.nix

34 lines
1.3 KiB
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
config = lib.mkIf config.alyraffauf.desktop.gnome.fprintdFix.enable {
2024-04-07 22:16:33 -04:00
# Need to change the order pam loads its modules
# to get proper fingerprint behavior on GDM and the lockscreen.
2024-05-27 21:39:30 -04:00
security.pam.services = {
login.fprintAuth = false;
gdm-fingerprint = lib.mkIf (config.services.fprintd.enable) {
text = ''
auth required pam_shells.so
auth requisite pam_nologin.so
auth requisite pam_faillock.so preauth
auth required ${pkgs.fprintd}/lib/security/pam_fprintd.so
auth optional pam_permit.so
auth required pam_env.so
auth [success=ok default=1] ${pkgs.gnome.gdm}/lib/security/pam_gdm.so
auth optional ${pkgs.gnome.gnome-keyring}/lib/security/pam_gnome_keyring.so
2024-05-27 21:39:30 -04:00
account include login
2024-05-27 21:39:30 -04:00
password required pam_deny.so
2024-05-27 21:39:30 -04:00
session include login
session optional ${pkgs.gnome.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start
'';
};
2024-04-05 16:43:19 -04:00
};
2024-04-07 22:16:33 -04:00
};
2024-03-28 16:40:23 -04:00
}