Files
dotfiles/modules/system/fingerprint.nix
T
2026-06-26 17:50:34 +09:00

29 lines
531 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 = true;
sudo.fprintAuth = true;
greetd.fprintAuth = lib.mkForce false;
ly.fprintAuth = lib.mkForce false;
};
};
}