nixos/hid-fanatecff: init module

This commit is contained in:
Christian Harke
2025-08-17 23:21:10 +02:00
parent 0faf4787f6
commit ea3e190c7e
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
{ lib, config, ... }:
let
cfg = config.hardware.hid-fanatecff;
inherit (config.boot.kernelPackages) hid-fanatecff;
inherit (lib) maintainers mkEnableOption mkIf;
in
{
options.hardware.hid-fanatecff = {
enable = mkEnableOption "hid-fanatecff, a Linux kernel driver that aims to add support for Fanatec devices";
};
config = mkIf cfg.enable {
boot.extraModulePackages = [ hid-fanatecff ];
services.udev.packages = [ hid-fanatecff ];
};
meta.maintainers = with maintainers; [ rake5k ];
}
+1
View File
@@ -73,6 +73,7 @@
./hardware/gpgsmartcards.nix
./hardware/graphics.nix
./hardware/hackrf.nix
./hardware/hid-fanatecff.nix
./hardware/i2c.nix
./hardware/infiniband.nix
./hardware/inputmodule.nix