update system

This commit is contained in:
2024-04-23 20:41:23 +02:00
parent 49c7d031d0
commit 0f90ac4ed1
7 changed files with 55 additions and 35 deletions

View File

@@ -5,8 +5,6 @@
...
}:
with lib;
let
cfg = config.hardware.hid-fanatecff;
kernelPackage = pkgs.callPackage ./hid-fanatecff-pkg.nix {
@@ -14,28 +12,18 @@ let
};
in
{
options.hardware.hid-fanatecff = {
enable = mkOption {
type = types.bool;
default = false;
example = true;
description = lib.mdDoc ''
Enables the Linux module drivers for Fanatec wheel bases.
Works with the CSL Elite and CSL/ClubSport DD/DD Pro,
and has experimental support for the ClubSport V2/V2.5,
Podium DD1/DD2 and CSR Elite.
'';
};
};
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-fanatecff" ];
kernelModules = [ "hid-fanatec" ];
};
services.udev.packages = [ kernelPackage ];
users.groups.games = { };
};
meta = {
maintainers = with maintainers; [ theaninova ];
maintainers = with lib.maintainers; [ theaninova ];
};
}