@@ -54,6 +54,15 @@ let
5454 '';
5555 };
5656
57+ fprintAuth = mkOption {
58+ default = config.services.fprintd.enable;
59+ type = types.bool;
60+ description = ''
61+ If set, fingerprint reader will be used (if exists and
62+ your fingerprints are enrolled).
63+ '';
64+ };
65+
5766 sshAgentAuth = mkOption {
5867 default = false;
5968 type = types.bool;
@@ -179,6 +188,8 @@ let
179188 "auth required pam_tally.so"}
180189 ${optionalString (config.security.pam.enableSSHAgentAuth && cfg.sshAgentAuth)
181190 "auth sufficient ${pkgs.pam_ssh_agent_auth}/libexec/pam_ssh_agent_auth.so file=~/.ssh/authorized_keys:~/.ssh/authorized_keys2:/etc/ssh/authorized_keys.d/%u"}
191+ ${optionalString cfg.fprintAuth
192+ "auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so"}
182193 ${optionalString cfg.usbAuth
183194 "auth sufficient ${pkgs.pam_usb}/lib/security/pam_usb.so"}
184195 ${optionalString cfg.unixAuth