system(steering-wheel): Add module
All checks were successful
check / check (push) Successful in 40s

This commit is contained in:
Florian RICHER 2025-06-18 21:37:49 +02:00
parent 33726bf4c1
commit 312448af7f
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 23 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
imports = imports =
@ -51,6 +51,7 @@
graphics.amdgpu.enable = true; graphics.amdgpu.enable = true;
audio.pipewire.enable = true; audio.pipewire.enable = true;
printing.enable = true; printing.enable = true;
steering-wheel.enable = true;
}; };
}; };

View file

@ -8,6 +8,7 @@
./keymaps ./keymaps
./graphics ./graphics
./printing.nix ./printing.nix
./steering-wheel.nix
./waydroid.nix ./waydroid.nix
]; ];
} }

View file

@ -0,0 +1,20 @@
{ 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 ];
};
};
}