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

This commit is contained in:
2026-06-30 21:01:31 +00:00
parent 04692c33f2
commit 36a5287b7b
+15 -1
View File
@@ -3,8 +3,22 @@
# 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;
imports =
[ # Include the results of the hardware scan.
../../common/configuration.nix