summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorMatthiasBenaets <matthias.benaets@gmail.com>2022-06-02 08:27:42 +0200
committerMatthiasBenaets <matthias.benaets@gmail.com>2022-06-02 08:27:42 +0200
commit9a5c77c581c5f680852e40501ae4685eea0b26e8 (patch)
tree1ed7dc2cd46ee84d49b3c5ca8dd4a1b8ab207ab4 /nixos/modules/hardware
parentde7510053c905d54ce1c574695995ad3ff7c505f (diff)
downloadnixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.tar
nixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.tar.gz
nixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.tar.bz2
nixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.tar.lz
nixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.tar.xz
nixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.tar.zst
nixpkgs-9a5c77c581c5f680852e40501ae4685eea0b26e8.zip
nixos/new-lg4ff: fix kernel selection
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/new-lg4ff.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/hardware/new-lg4ff.nix b/nixos/modules/hardware/new-lg4ff.nix
index d1cdf0540fc..3c7f66f8d89 100644
--- a/nixos/modules/hardware/new-lg4ff.nix
+++ b/nixos/modules/hardware/new-lg4ff.nix
@@ -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" ];
     };
   };