Fingerprint scanner: Difference between revisions
m System Settings instead of System Monitor |
Add community flakes for Synaptics 06cb:009a and 06cb:00be |
||
| Line 20: | Line 20: | ||
# this package is deprecated as of 2026 due to copyright reasons, you may search the internet for archived caches | # this package is deprecated as of 2026 due to copyright reasons, you may search the internet for archived caches | ||
}|name=/etc/nixos/configuration.nix|lang=nix}} | }|name=/etc/nixos/configuration.nix|lang=nix}} | ||
=== Drivers outside nixpkgs === | |||
Some sensors have no driver in libfprint or nixpkgs. Community flakes package third-party drivers for them as NixOS modules: | |||
* '''Synaptics 06cb:009a''' (e.g. ThinkPad T480, T480s): [https://github.com/ahbnr/nixos-06cb-009a-fingerprint-sensor nixos-06cb-009a-fingerprint-sensor], using [https://github.com/uunicorn/python-validity python-validity] or a libfprint-tod-vfs0090 fork | |||
* '''Synaptics Tudor 06cb:00be''' (e.g. ThinkPad L13/L14/L15 Gen 1, IdeaPad 5, Yoga 7): [https://github.com/lew/nixos-06cb-00be-fingerprint-sensor nixos-06cb-00be-fingerprint-sensor], packaging the reverse-engineered [https://github.com/Popax21/synaTudor synaTudor] driver | |||
Both are experimental; read the project's README before enabling. Find your sensor's ID with <code>lsusb</code>. | |||
== Enroll fingerprint == | == Enroll fingerprint == | ||
Latest revision as of 11:23, 21 November 2026
Fingerprint scanners (on laptop computers) can be used to unlock devices instead of using passwords.
Install
{ config, lib, pkgs, ... }: {
# Install the driver
services.fprintd.enable = true;
# If simply enabling fprintd is not enough, try enabling fprintd.tod...
services.fprintd.tod.enable = true;
# ...and use one of the next four drivers
services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix; # Goodix driver module
# services.fprintd.tod.driver = pkgs.libfprint-2-tod1-elan; # Elan(04f3:0c4b) driver
# services.fprintd.tod.driver = pkgs.libfprint-2-tod1-vfs0090; # (Marked as broken as of 2025/04/23!) driver for 2016 ThinkPads
# services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix-550a; # Goodix 550a driver (from Lenovo)
# however for focaltech 2808:a658, use fprintd with overidden package (without tod)
# services.fprintd.package = pkgs.fprintd.override {
# libfprint = pkgs.libfprint-focaltech-2808-a658;
# };
# this package is deprecated as of 2026 due to copyright reasons, you may search the internet for archived caches
}
Drivers outside nixpkgs
Some sensors have no driver in libfprint or nixpkgs. Community flakes package third-party drivers for them as NixOS modules:
- Synaptics 06cb:009a (e.g. ThinkPad T480, T480s): nixos-06cb-009a-fingerprint-sensor, using python-validity or a libfprint-tod-vfs0090 fork
- Synaptics Tudor 06cb:00be (e.g. ThinkPad L13/L14/L15 Gen 1, IdeaPad 5, Yoga 7): nixos-06cb-00be-fingerprint-sensor, packaging the reverse-engineered synaTudor driver
Both are experimental; read the project's README before enabling. Find your sensor's ID with lsusb.
Enroll fingerprint
Fingerprint enrollment can be done via the CLI or the UI in the Desktop Environment if available.
CLI
$ fprintd-enroll
Gnome
In Gnome, the the fingerprints can be configured through the Settings application.
- Open Gnome Settings
- Scroll down to System
- Enter the Users menu
- Enter Fingerprint Login and add fingerprints
Note: If the Fingerprint Login item is not available, the fprintd driver might not be configured correctly.
KDE Plasma
In KDE Plasma, the fingerprints can be configured through the Settings application.
- Open System Settings
- On the menu on the left, scroll down to Users and enter it
- Select your user
- Enter Configure Fingerprint Authentication and follow the instructions to add your fingerprints
Note: If the Configure Fingerprint Authentication item is not available, the fprintd driver might not be configured correctly.
Login
While services.fprintd.enable = true; enables fingerprint login for the majority of display manager via the corresponding PAM module, it can sometimes disable the ability to login using a password. This is addressed in the GitHub issue 171136. In that issue, a possible workaround is addressed using a custom PAM module for the gnome display manager:
security.pam.services.login.fprintAuth = false;
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
'';
};