From ea3e190c7ef0ee0b79c41b68bb508198f7767e2e Mon Sep 17 00:00:00 2001 From: Christian Harke Date: Sun, 17 Aug 2025 23:21:10 +0200 Subject: [PATCH] nixos/hid-fanatecff: init module --- nixos/modules/hardware/hid-fanatecff.nix | 19 +++++++++++++++++++ nixos/modules/module-list.nix | 1 + 2 files changed, 20 insertions(+) create mode 100644 nixos/modules/hardware/hid-fanatecff.nix diff --git a/nixos/modules/hardware/hid-fanatecff.nix b/nixos/modules/hardware/hid-fanatecff.nix new file mode 100644 index 000000000000..b227eff5fb3c --- /dev/null +++ b/nixos/modules/hardware/hid-fanatecff.nix @@ -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 ]; +} diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 4f2d56c7f86d..f3dbc112b842 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -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