diff --git a/hosts/gampo/configuration.nix b/hosts/gampo/configuration.nix index c0ad715..eceacd1 100644 --- a/hosts/gampo/configuration.nix +++ b/hosts/gampo/configuration.nix @@ -33,6 +33,7 @@ }; hardware = { bluetooth.enable = true; + fingerprint.enable = true; input = { corne.allowHidAccess = true; ibmTrackpoint.disable = true; diff --git a/system/hardware/default.nix b/system/hardware/default.nix index bc5875d..236ad6f 100644 --- a/system/hardware/default.nix +++ b/system/hardware/default.nix @@ -2,6 +2,7 @@ imports = [ ./amdgpu.nix ./bluetooth.nix + ./fingerprint.nix ./sound.nix ./input ]; diff --git a/system/hardware/fingerprint.nix b/system/hardware/fingerprint.nix new file mode 100644 index 0000000..8eb143a --- /dev/null +++ b/system/hardware/fingerprint.nix @@ -0,0 +1,13 @@ +{ + lib, + config, + ... +}: +with lib; let + cfg = config.mySystem.hardware.fingerprint; +in { + options.mySystem.hardware.fingerprint.enable = mkEnableOption "Enable fingerprint reader"; + config = mkIf cfg.enable { + hardware.facter.detected.fingerprint.enable = cfg.enable; + }; +}