nixos/iso-image: Fix eval

This commit is contained in:
Robert Hensing 2022-09-29 12:19:06 +02:00
parent f54f12a602
commit f34135a73b

View File

@ -41,6 +41,12 @@ let
buildMenuAdditionalParamsGrub2 config ""
;
targetArch =
if config.boot.loader.grub.forcei686 then
"ia32"
else
pkgs.stdenv.hostPlatform.efiArch;
/**
* Given a `config` and params to add to `params`, build a set of default options.
* Use this one when creating a variant (e.g. hidpi)
@ -54,12 +60,6 @@ let
initrd = "/boot/initrd";
};
targetArch =
if config.boot.loader.grub.forcei686 then
"ia32"
else
stdenv.hostPlatform.efiArch;
in
menuBuilderGrub2
finalCfg