services/fprintd: update config+persist
This commit is contained in:
parent
4a41b5c0fc
commit
f5c1e67fc6
2 changed files with 7 additions and 18 deletions
|
@ -5,25 +5,13 @@
|
|||
}:
|
||||
with lib;
|
||||
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;
|
||||
};
|
||||
})
|
||||
);
|
||||
|
||||
services.fprintd = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Do not allow login/unlock with fingerprint
|
||||
security.pam.services = {
|
||||
"login".fprintAuth = false;
|
||||
"swaylock".fprintAuth = false;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue