6afb255d97
these changes were generated with nixq 0.0.2, by running nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix two mentions of the mdDoc function remain in nixos/, both of which are inside of comments. Since lib.mdDoc is already defined as just id, this commit is a no-op as far as Nix (and the built manual) is concerned.
29 lines
738 B
Nix
29 lines
738 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.hardware.new-lg4ff;
|
|
kernelPackages = config.boot.kernelPackages;
|
|
in {
|
|
options.hardware.new-lg4ff = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = ''
|
|
Enables improved Linux module drivers for Logitech driving wheels.
|
|
This will replace the existing in-kernel hid-logitech modules.
|
|
Works most notably on the Logitech G25, G27, G29 and Driving Force (GT).
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
boot = {
|
|
extraModulePackages = [ kernelPackages.new-lg4ff ];
|
|
kernelModules = [ "hid-logitech-new" ];
|
|
};
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [ matthiasbenaets ];
|
|
}
|