From 3578e66a15d68de9bfdf9bd5321d362851f95b32 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Tue, 30 Jun 2026 21:22:20 +0000 Subject: [PATCH] Update hosts/server/configuration.nix --- hosts/server/configuration.nix | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index 6abc16b..cc3dfab 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -3,22 +3,9 @@ # https://search.nixos.org/options and in the NixOS manual (`nixos-help`). { config, lib, pkgs, inputs,... }: -let - zfsCompatibleKernelPackages = lib.filterAttrs ( - name: kernelPackages: - (builtins.match "linux_[0-9]+_[0-9]+" name) != null - && (builtins.tryEval kernelPackages).success - && (!kernelPackages.${config.boot.zfs.package.kernelModuleAttribute}.meta.broken) - ) pkgs.linuxKernel.packages; - latestKernelPackage = lib.last ( - lib.sort (a: b: (lib.versionOlder a.kernel.version b.kernel.version)) ( - builtins.attrValues zfsCompatibleKernelPackages - ) - ); -in { # Note this might jump back and forth as kernels are added or removed. - boot.kernelPackages = latestKernelPackage; + boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; imports = [ # Include the results of the hardware scan. ../../common/configuration.nix