feat: add possibility to use fingerprint reader

This commit is contained in:
2026-02-22 15:33:58 +01:00
parent 0815dd3a30
commit a35d536b75
3 changed files with 15 additions and 0 deletions

View File

@@ -33,6 +33,7 @@
}; };
hardware = { hardware = {
bluetooth.enable = true; bluetooth.enable = true;
fingerprint.enable = true;
input = { input = {
corne.allowHidAccess = true; corne.allowHidAccess = true;
ibmTrackpoint.disable = true; ibmTrackpoint.disable = true;

View File

@@ -2,6 +2,7 @@
imports = [ imports = [
./amdgpu.nix ./amdgpu.nix
./bluetooth.nix ./bluetooth.nix
./fingerprint.nix
./sound.nix ./sound.nix
./input ./input
]; ];

View 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;
};
}