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