nixos/new-lg4ff: fix kernel selection

This commit is contained in:
MatthiasBenaets 2022-06-02 08:27:42 +02:00
parent de7510053c
commit 9a5c77c581
3 changed files with 4 additions and 5 deletions

View file

@ -4,6 +4,7 @@ with lib;
let
cfg = config.hardware.new-lg4ff;
kernelPackages = config.boot.kernelPackages;
in {
options.hardware.new-lg4ff = {
enable = mkOption {
@ -19,7 +20,7 @@ in {
config = lib.mkIf cfg.enable {
boot = {
extraModulePackages = [ pkgs.new-lg4ff ];
extraModulePackages = [ kernelPackages.new-lg4ff ];
kernelModules = [ "hid-logitech-new" ];
};
};

View file

@ -23097,10 +23097,6 @@ with pkgs;
stdenv = gcc11Stdenv;
};
new-lg4ff = callPackage ../os-specific/linux/new-lg4ff {
inherit (linuxPackages) kernel;
};
nmon = callPackage ../os-specific/linux/nmon { };
hwdata = callPackage ../os-specific/linux/hwdata { };

View file

@ -343,6 +343,8 @@ in {
mbp2018-bridge-drv = callPackage ../os-specific/linux/mbp-modules/mbp2018-bridge-drv { };
new-lg4ff = callPackage ../os-specific/linux/new-lg4ff { };
nvidiabl = callPackage ../os-specific/linux/nvidiabl { };
nvidiaPackages = dontRecurseIntoAttrs (lib.makeExtensible (_: callPackage ../os-specific/linux/nvidia-x11 { }));