nix/modules/system/hardware/fprint.nix

24 lines
439 B
Nix
Raw Permalink Normal View History

{ config, lib, ... }:
2024-03-09 17:18:36 +01:00
with lib;
2024-03-09 17:18:36 +01:00
let
cfg = config.settings.hardware.fprint;
in {
options = {
settings.hardware.fprint.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable fingerprint
'';
};
};
config = mkIf cfg.enable {
services.fprintd.enable = true;
security.pam.services.login.fprintAuth = false;
security.pam.services.cosmic-greeter.fprintAuth = false;
};
2024-03-09 17:18:36 +01:00
}