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

This commit is contained in:
2026-06-30 21:40:38 +00:00
parent 161888b037
commit 09a50f8ff2
+14 -1
View File
@@ -6,7 +6,7 @@
{ {
# Note this might jump back and forth as kernels are added or removed. # Note this might jump back and forth as kernels are added or removed.
# boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages; # boot.kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
boot.kernelModules = [ "zfs" ]; #boot.kernelModules = [ "zfs" ];
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
../../common/configuration.nix ../../common/configuration.nix
@@ -14,6 +14,19 @@ boot.kernelModules = [ "zfs" ];
../../modules/nix/remote-builder-client.nix ../../modules/nix/remote-builder-client.nix
]; ];
boot.kernelPackages = lib.last (
lib.sort (a: b: (lib.versionOlder a.kernel.version b.kernel.version)) (
builtins.attrValues (
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
)
)
);
networking.hostName = "server"; # Define your hostname. networking.hostName = "server"; # Define your hostname.
networking.hostId = "6689f93e"; networking.hostId = "6689f93e";
# Pick only one of the below networking options. # Pick only one of the below networking options.