Hello, Recently I went into the “world” NixOS, and at first I had difficulties to be able to use screen unlock ing with the fingerprint sensor of my notebook, after much difficulty and the union of several solutions, I came to the following result that I come to share with you.
At first we need to install the fprintd package as follows;
nix-env -iA nixos.fprintd
On Non NixOS:
nix-env -iA nixpkgs.fprintd
environment.systemPackages = [ pkgs.fprintd ];
With this we must configure the following lines in NixOS Configuration;
services.fprintd.enable = true; services.fprintd.tod.enable = true; services.fprintd.tod.driver = pkgs.libfprint-2-tod1-vfs0090; (If the vfs0090 Driver does not work, use the following driver) services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix; (On my device it only worked with this driver)
Finally, we must rotate one:
sudo nixos-rebuild switch
When you restart the system, the fingerprint option will appear in the user password menu, so it can be configured.