Unverified Commit ea3e190c authored by Christian Harke's avatar Christian Harke
Browse files

nixos/hid-fanatecff: init module

parent 0faf4787
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
{ 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 −0
Original line number Diff line number Diff line
@@ -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