Skip to content

Commit 6f4cf5a

Browse files
zaninimeMic92
authored andcommitted
Set kernelPackages in native builder
In some cases, the kernel is not defined for cross-arch builds.
1 parent fec5efe commit 6f4cf5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/make-disk-image.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ let
7676
disko.testMode = true;
7777
disko.devices = lib.mkForce cleanedConfig.disko.devices;
7878
boot.loader.grub.devices = lib.mkForce cleanedConfig.boot.loader.grub.devices;
79+
boot.kernelPackages = cfg.kernelPackages;
7980
nixpkgs.hostPlatform = lib.mkForce pkgs.stdenv.hostPlatform;
8081
nixpkgs.buildPlatform = lib.mkForce pkgs.stdenv.hostPlatform;
8182
}

0 commit comments

Comments
 (0)