diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 47397b99d922..294198eb1ffc 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -866,7 +866,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