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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -49,6 +49,7 @@ in
|
|||
++ optional config.services.nginx.enable "/var/www"
|
||||
++ optional config.services.forgejo.enable "/var/lib/forgejo"
|
||||
++ optional config.services.radicale.enable config.services.radicale.settings.storage.filesystem_folder
|
||||
++ optional config.services.fprintd.enable "/var/lib/fprint"
|
||||
++ optionals config.mailserver.enable [
|
||||
"/var/lib/dovecot"
|
||||
"/var/vmail"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue