diff options
Diffstat (limited to '')
-rw-r--r-- | modules/nixos/sils/default.nix | 1 | ||||
-rw-r--r-- | modules/nixos/sils/fprintd.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/nixos/sils/default.nix b/modules/nixos/sils/default.nix index 89fe3a2..5a45ecc 100644 --- a/modules/nixos/sils/default.nix +++ b/modules/nixos/sils/default.nix @@ -8,6 +8,7 @@ ./environment.nix ./firejail.nix ./font.nix + ./fprintd.nix ./graphics.nix ./hyprland.nix ./impermanence.nix diff --git a/modules/nixos/sils/fprintd.nix b/modules/nixos/sils/fprintd.nix new file mode 100644 index 0000000..dd5c1cc --- /dev/null +++ b/modules/nixos/sils/fprintd.nix @@ -0,0 +1,19 @@ +{ + config, + lib, + pkgs, + ... +}: let + cfg = config.sils.fingerprint; +in { + options.sils.fingerprint.enable = lib.mkEnableOption "fingerprint auth"; + config = lib.mkIf cfg.enable { + services.fprintd = { + enable = true; + tod = { + enable = true; + driver = pkgs.libfprint-2-tod1-vfs0090; + }; + }; + }; +} |