From 9711af0579b007dc9a301c70b6469c09b58d4d3d Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 25 Jan 2022 11:33:20 -0800 Subject: [PATCH] nixos/iso-image: fix isoImage.grubTheme = null; logic --- nixos/modules/installer/cd-dvd/iso-image.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 0b5135c088ea..4b79ad9c2024 100644 --- a/nixos/modules/installer/cd-dvd/iso-image.nix +++ b/nixos/modules/installer/cd-dvd/iso-image.nix @@ -339,12 +339,13 @@ let set textmode=true terminal_output console } + '' + lib.optionalString (config.isoImage.grubTheme != null) '' hiddenentry 'GUI mode' --hotkey 'g' { $(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont (\$root)/EFI/boot/grub-theme/%P\n") set textmode=false terminal_output gfxterm } - + '' + '' # If the parameter iso_path is set, append the findiso parameter to the kernel # line. We need this to allow the nixos iso to be booted from grub directly.