Fingerprint scanner: Difference between revisions
m vfs0090 driver is marked as broken in nixpkgs |
fprintd-enroll doesn't need to (and shouldn't) be run as root |
||
(One intermediate revision by one other user not shown) | |||
Line 29: | Line 29: | ||
=== CLI === | === CLI === | ||
<syntaxhighlight lang="bash">$ | <syntaxhighlight lang="bash">$ fprintd-enroll</syntaxhighlight> | ||
=== Gnome === | === Gnome === | ||
Line 44: | Line 44: | ||
security.pam.services.login.fprintAuth = false; | security.pam.services.login.fprintAuth = false; | ||
security.pam.services.gdm-fingerprint = lib.mkIf (config.services.fprintd.enable) { | security.pam.services.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.gdm}/lib/security/pam_gdm.so | |||
auth optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so | |||
account include login | |||
password required pam_deny.so | |||
session include login | |||
session optional ${pkgs.gnome-keyring}/lib/security/pam_gnome_keyring.so auto_start | |||
''; | |||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Hardware]] | [[Category:Hardware]] |