nixos/services/fprintd.nix

19 lines
327 B
Nix
Raw Normal View History

2021-11-25 22:03:04 +01:00
{ 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;
};
}