Add new machine Marid.

This commit is contained in:
Kevin Baensch 2021-11-25 22:03:04 +01:00
parent e8f26ac86e
commit 47500b78e3
Signed by: derped
GPG key ID: C0F1D326C7626543
6 changed files with 175 additions and 3 deletions

18
services/fprintd.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, lib, ... }:
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;
};
}