From e8e65ba4d14f4e639ecb66867aafc008c29e99ee Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 12 Oct 2024 15:17:51 +0000 Subject: [PATCH] fix: zfs deprecated latest compatible linux --- modules/nixos/hardware/zfs.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/nixos/hardware/zfs.nix b/modules/nixos/hardware/zfs.nix index f157915..605316e 100644 --- a/modules/nixos/hardware/zfs.nix +++ b/modules/nixos/hardware/zfs.nix @@ -1,4 +1,9 @@ -{ config, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: { options = { @@ -8,7 +13,7 @@ config = lib.mkIf (config.server && config.zfs.enable) { # Only use compatible Linux kernel, since ZFS can be behind - boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; + boot.kernelPackages = pkgs.linuxPackages; # Defaults to latest LTS boot.kernelParams = [ "nohibernate" ]; boot.supportedFilesystems = [ "zfs" ]; services.prometheus.exporters.zfs.enable = config.prometheus.exporters.enable;