mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-11 02:56:27 +00:00
30 lines
612 B
Nix
30 lines
612 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.hardware.hid-fanatecff;
|
|
kernelPackage = pkgs.callPackage ./hid-fanatecff-pkg.nix {
|
|
kernel = config.boot.kernelPackages.kernel;
|
|
};
|
|
in
|
|
{
|
|
options.hardware.hid-fanatecff.enable = lib.mkEnableOption "the Linux kernel drivers for Fanatec wheel bases";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
boot = {
|
|
extraModulePackages = [ kernelPackage ];
|
|
kernelModules = [ "hid-fanatec" ];
|
|
};
|
|
services.udev.packages = [ kernelPackage ];
|
|
users.groups.games = { };
|
|
};
|
|
|
|
meta = {
|
|
maintainers = with lib.maintainers; [ theaninova ];
|
|
};
|
|
}
|