Revert "nixos/iso-image: fix isoImage.grubTheme = null; logic"

This commit is contained in:
Will Fancher 2024-11-26 07:56:33 -05:00 committed by GitHub
parent e016b8954d
commit 80ec892b74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -335,13 +335,12 @@ 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.