system(steering-wheel): Add module
All checks were successful
check / check (push) Successful in 40s
All checks were successful
check / check (push) Successful in 40s
This commit is contained in:
parent
33726bf4c1
commit
312448af7f
3 changed files with 23 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
./keymaps
|
||||
./graphics
|
||||
./printing.nix
|
||||
./steering-wheel.nix
|
||||
./waydroid.nix
|
||||
];
|
||||
}
|
20
modules/system/hardware/steering-wheel.nix
Normal file
20
modules/system/hardware/steering-wheel.nix
Normal 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 ];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue