Hi. I am currently running the unstable version of NixOS, along with Home Manager, on a Framework laptop, on Hyprland I have recently added the following config option to enable fprintd
:
services.fprintd.enable = true;
I saw on this NixOS on Framework article that the TOD patches are not required to get the fingerprint reader to work properly, so I did not include the services.fprintd.tod
config.
I was able to setup fprintd
successfully, and I enrolled 2 fingers without issue. I am trying to get swaylock
to unlock by using my fingerprint. On Arch Linux, when the screen is locked (via swaylock
), you need to press enter so that it begins verify
ing, and then place your finger on the reader, and it unlocks. On NixOS, however, this does not work at all, and I can only unlock by entering my password directly.
I also have this config piece:
security.pam.services.swaylock = {
text = ''
auth sufficient pam_unix.so try_first_pass likeauth nullok
auth sufficient pam_fprintd.so
auth include login
'';
};
Which resembles the /etc/pam.d
file for swaylock
that I had on Arch, with those same options. Has anyone else encountered this issue, and has a working solution? I haven’t tried testing the fingerprint yet with other password-required elements, like sudo
, or with standard login (I am just logging in thru a TTY and running Hyprland
to get into the WM), as I am trying to get the swaylock
piece working first.
Any guidance is much appreciated. Thank you…!