Skip to content

Commit b5168a9

Browse files
jonringerArtturin
authored andcommitted
nixos/iso-image: fix isoImage.grubTheme = null;
Fixes `error: cannot coerce null to a string`
1 parent 09913b8 commit b5168a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nixos/modules/installer/cd-dvd/iso-image.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,12 +335,14 @@ let
335335
set textmode=true
336336
terminal_output console
337337
}
338+
339+
${lib.optionalString (config.isoImage.grubTheme != null) ''
338340
hiddenentry 'GUI mode' --hotkey 'g' {
339341
$(find ${config.isoImage.grubTheme} -iname '*.pf2' -printf "loadfont (\$root)/EFI/BOOT/grub-theme/%P\n")
340342
set textmode=false
341343
terminal_output gfxterm
342344
}
343-
345+
''}
344346
345347
# If the parameter iso_path is set, append the findiso parameter to the kernel
346348
# line. We need this to allow the nixos iso to be booted from grub directly.

0 commit comments

Comments
 (0)