feat: add possibility to use fingerprint reader
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
};
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
fingerprint.enable = true;
|
||||
input = {
|
||||
corne.allowHidAccess = true;
|
||||
ibmTrackpoint.disable = true;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
imports = [
|
||||
./amdgpu.nix
|
||||
./bluetooth.nix
|
||||
./fingerprint.nix
|
||||
./sound.nix
|
||||
./input
|
||||
];
|
||||
|
||||
13
system/hardware/fingerprint.nix
Normal file
13
system/hardware/fingerprint.nix
Normal file
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user