Fingerprint support
This commit is contained in:
parent
eb63e62025
commit
e3dc1908af
|
@ -20,6 +20,7 @@
|
|||
office.enable = true;
|
||||
pandoc.enable = true;
|
||||
};
|
||||
services.fprintd.enable = true;
|
||||
ui = {
|
||||
flatpak.enable = true;
|
||||
gnome.enable = true;
|
||||
|
|
|
@ -36,6 +36,7 @@ in
|
|||
pandoc.enable = true;
|
||||
recording.enable = true;
|
||||
};
|
||||
services.fprintd.enable = true;
|
||||
ui = {
|
||||
flatpak.enable = true;
|
||||
gnome.enable = true;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./apcupsd.nix
|
||||
./duplicacy-web.nix
|
||||
./fprintd.nix
|
||||
./k3s.nix
|
||||
./msmtp.nix
|
||||
];
|
||||
|
|
21
modules/services/fprintd.nix
Normal file
21
modules/services/fprintd.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue