From 67bb80fb6b82fdbd91a8296f7c6532f06032d282 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Wed, 18 Dec 2024 19:03:29 +0100 Subject: nixos/fprintd: init --- modules/nixos/sils/default.nix | 1 + modules/nixos/sils/fprintd.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 modules/nixos/sils/fprintd.nix 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; + }; + }; + }; +} -- cgit 1.4.1