Merge pull request #239393 from Lassulus/iso-graphical

nixos/iso-image: make graphical grub configurable
This commit is contained in:
Jörg Thalheim 2023-07-05 12:30:59 +01:00 committed by GitHub
commit 56926dda06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -6,6 +6,7 @@
imports = [ ./installation-cd-graphical-base.nix ];
isoImage.edition = "gnome";
isoImage.graphicalGrub = true;
services.xserver.desktopManager.gnome = {
# Add Firefox and other tools useful for installation to the launcher

View File

@ -283,7 +283,7 @@ let
cat <<EOF > $out/EFI/boot/grub.cfg
set with_fonts=false
set textmode=false
set textmode=${boolToString !config.isoImage.graphicalGrub}
# If you want to use serial for "terminal_*" commands, you need to set one up:
# Example manual configuration:
# → serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
@ -658,6 +658,16 @@ in
'';
};
isoImage.graphicalGrub = mkOption {
default = false;
type = types.bool;
example = true;
description = lib.mdDoc ''
Whether to use textmode or graphical grub.
false means we use textmode grub.
'';
};
};
# store them in lib so we can mkImageMediaOverride the