about summary refs log tree commit diff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/eve.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/eve.nix b/sys/eve.nix
index 685dedb0e6f1..95f7f2b728af 100644
--- a/sys/eve.nix
+++ b/sys/eve.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ config, lib, pkgs, ... }:
 
 {
   imports = [
@@ -8,10 +8,8 @@
 
   hardware.enableRedistributableFirmware = true;
 
-  boot.kernelPackages = with pkgs; linuxPackagesFor (linux_latest.override {
-    kernelPatches =
-      linux_latest.kernelPatches ++ (with kernelPatches; [ eve-backlight ]);
-  });
+  boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
+  boot.kernelPatches = lib.attrVals [ "eve-backlight" ] pkgs.kernelPatches;
   boot.zfs.enableUnstable = true;
 
   boot.initrd.availableKernelModules = [ "nvme" "usb_storage" "sdhci_pci" ];