nixos/modules/system/hardware/steering-wheel.nix
Florian RICHER 312448af7f
All checks were successful
check / check (push) Successful in 40s
system(steering-wheel): Add module
2025-06-18 21:37:49 +02:00

20 lines
No EOL
479 B
Nix

{ config, lib, ... }:
with lib;
let
cfg = config.modules.system.hardware.steering-wheel;
in
{
options.modules.system.hardware.steering-wheel = {
enable = mkEnableOption ''
Enable steering wheel with my custom configurations
'';
};
config = mkIf cfg.enable {
boot = {
blacklistedKernelModules = [ "hid-thrustmaster" ];
kernelModules = [ "hid-tmff2" ];
extraModulePackages = [ config.boot.kernelPackages.hid-tmff2 ];
};
};
}