iso-image: ensure boot.loader.grub.enable is disabled by default

We use `mkImageMediaOverride` to ensure that GRUB is actually disabled
if a user enables it using the default priority but still allows them to
enable it using `mkForce`.
This commit is contained in:
Michael Hoang
2025-08-01 14:06:13 +10:00
parent be9e214982
commit 7fd3735203

View File

@@ -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