1
0
Fork 0
nix-configuration/modules/services/fprintd.nix
2024-03-22 18:29:12 -04:00

21 lines
386 B
Nix

{ pkgs, config, lib, ... }:
let
cfg = config.host.services.fprintd;
in
with lib;
{
options = {
host.services.fprintd.enable = mkEnableOption (mdDoc "Enables fingerprint recognition");
};
config = mkIf cfg.enable {
nixpkgs.config.allowUnfree = true;
services.fprintd = {
enable = true;
tod = {
enable = true;
driver = pkgs.libfprint-2-tod1-elan;
};
};
};
}