Files
dotfiles/modules/system/fingerprint.nix
2026-07-14 19:28:47 +09:00

29 lines
532 B
Nix

{
lib,
config,
...
}:
let
cfg = config.my.system.fingerprint;
in
{
options.my.system.fingerprint = {
enable = lib.mkEnableOption "fingerprint authentication";
};
config = lib.mkIf cfg.enable {
services.fprintd.enable = true;
security.polkit.enable = true;
security.pam.services.polkit-1.fprintAuth = true;
security.pam.services = {
login.fprintAuth = false;
sudo.fprintAuth = true;
greetd.fprintAuth = lib.mkForce false;
ly.fprintAuth = lib.mkForce false;
};
};
}