Set kernelPackages in native builder

In some cases, the kernel is not defined for cross-arch builds.
This commit is contained in:
Francesco Zanini authored and Jörg Thalheim committed 2025-10-31 08:29:56 +00:00
1 parent fec5efebfc
commit 6f4cf5abbe
1 file changed
+1
+1
View File
@@ -76,6 +76,7 @@ let
disko.testMode = true;
disko.devices = lib.mkForce cleanedConfig.disko.devices;
boot.loader.grub.devices = lib.mkForce cleanedConfig.boot.loader.grub.devices;
boot.kernelPackages = cfg.kernelPackages;
nixpkgs.hostPlatform = lib.mkForce pkgs.stdenv.hostPlatform;
nixpkgs.buildPlatform = lib.mkForce pkgs.stdenv.hostPlatform;
}