Skip to content

Commit

Permalink
nixos/iso-image: fix isoImage.grubTheme = null; (#359374)
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco authored Nov 27, 2024
2 parents 554298b + b5168a9 commit 98dece1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nixos/modules/installer/cd-dvd/iso-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,14 @@ 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.
Expand Down

0 comments on commit 98dece1

Please sign in to comment.