nixos/services/fprintd.nix

30 lines
406 B
Nix
Raw Normal View History

2023-09-11 20:23:04 +02:00
{
config,
lib,
...
}:
2021-11-25 22:03:04 +01:00
with lib;
mkIf (elem "fprintd" config.machine.services) {
security.pam.services =
let
2023-09-11 20:23:04 +02:00
unlock = [
"sudo"
"i3lock"
"login"
"lightdm"
];
in
listToAttrs (
forEach unlock (n: {
2023-09-11 20:23:04 +02:00
name = n;
value = {
fprintAuth = true;
};
})
);
2021-11-25 22:03:04 +01:00
services.fprintd = {
enable = true;
};
}