diff options
author | Silas Schöffel <sils@sils.li> | 2024-12-18 19:03:29 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2024-12-18 19:03:29 +0100 |
commit | 67bb80fb6b82fdbd91a8296f7c6532f06032d282 (patch) | |
tree | 0d3188ca2a7f3d90cf4f4d88be58aebc7eff227b /modules/nixos | |
parent | replace youtube-dl with yt-dlp (diff) | |
download | nix-config-67bb80fb6b82fdbd91a8296f7c6532f06032d282.tar.gz nix-config-67bb80fb6b82fdbd91a8296f7c6532f06032d282.zip |
nixos/fprintd: init
Diffstat (limited to 'modules/nixos')
-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; + }; + }; + }; +} |