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
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
./keymaps
|
./keymaps
|
||||||
./graphics
|
./graphics
|
||||||
./printing.nix
|
./printing.nix
|
||||||
|
./steering-wheel.nix
|
||||||
./waydroid.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