diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 35afdc3a3f76..e49159c5964f 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -865,7 +865,7 @@ in # Don't build the GRUB menu builder script, since we don't need it # here and it causes a cyclic dependency. - boot.loader.grub.enable = false; + boot.loader.grub.enable = lib.mkImageMediaOverride false; environment.systemPackages = [ grubPkgs.grub2