Update hosts/server/configuration.nix
Check NixOS configurations / eval-hosts (push) Failing after 6m52s

This commit is contained in:
2026-06-30 21:22:20 +00:00
parent f759f98f97
commit 3578e66a15
+1 -14
View File
@@ -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