summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd/iso-image.nix
diff options
context:
space:
mode:
authorSamuel Dionne-Riel <samuel@dionne-riel.com>2021-05-22 18:16:42 -0400
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-22 20:04:05 -0700
commitf93f0e72e9ef423ed591951030f08cafd209e637 (patch)
tree6babceedea1527a12cb9fead427004e28c4cd481 /nixos/modules/installer/cd-dvd/iso-image.nix
parentb889a3f7a07515108cc9614639cd307cf2acbec5 (diff)
downloadnixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.tar
nixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.tar.gz
nixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.tar.bz2
nixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.tar.lz
nixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.tar.xz
nixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.tar.zst
nixpkgs-f93f0e72e9ef423ed591951030f08cafd209e637.zip
iso-image: Force gfxmode
https://www.gnu.org/software/grub/manual/grub/html_node/gfxmode.html
Diffstat (limited to 'nixos/modules/installer/cd-dvd/iso-image.nix')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 324b38070e4..3f5ac8a5113 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -185,6 +185,19 @@ let
     insmod gfxterm
     insmod png
     set gfxpayload=keep
+    set gfxmode=${concatStringsSep "," [
+      # GRUB will use the first valid mode listed here.
+      # `auto` will sometimes choose the smallest valid mode it detects.
+      # So instead we'll list a lot of possibly valid modes :/
+      #"3840x2160"
+      #"2560x1440"
+      "1920x1080"
+      "1366x768"
+      "1280x720"
+      "1024x768"
+      "800x600"
+      "auto"
+    ]}
 
     # Fonts can be loaded?
     # (This font is assumed to always be provided as a fallback by NixOS)