Files
nix-config/modules/hardware/fingerprint.nix
T

16 lines
365 B
Nix
Raw Normal View History

2026-08-20 22:03:24 +02:00
{
flake.modules.nixos.fingerprint = {
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;
};
};
}