at 25.11-pre 742 B view raw
1{ 2 pkgs, 3 lib, 4 config, 5 ... 6}: 7let 8 cfg = config.hardware.new-lg4ff; 9 kernelPackages = config.boot.kernelPackages; 10in 11{ 12 options.hardware.new-lg4ff = { 13 enable = lib.mkOption { 14 type = lib.types.bool; 15 default = false; 16 description = '' 17 Enables improved Linux module drivers for Logitech driving wheels. 18 This will replace the existing in-kernel hid-logitech modules. 19 Works most notably on the Logitech G25, G27, G29 and Driving Force (GT). 20 ''; 21 }; 22 }; 23 24 config = lib.mkIf cfg.enable { 25 boot = { 26 extraModulePackages = [ kernelPackages.new-lg4ff ]; 27 kernelModules = [ "hid-logitech-new" ]; 28 }; 29 }; 30 31 meta.maintainers = with lib.maintainers; [ matthiasbenaets ]; 32}