22 lines
301 B
Nix
22 lines
301 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.custom.hardware.fingerprint;
|
|
in
|
|
{
|
|
options.custom.hardware.fingerprint = {
|
|
enable = lib.mkEnableOption "Enables fingerprint sensor support";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.fprintd = {
|
|
enable = true;
|
|
};
|
|
};
|
|
}
|