summary refs log tree commit diff
path: root/nixos/modules/installer/cd-dvd/iso-image.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-28 17:21:57 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-10-02 22:10:18 -0400
commit489548310fa17ff9df9342fbffd38ac21ac74fc9 (patch)
treea59f7d6140dca0ad993733e42e3a2b1282d73173 /nixos/modules/installer/cd-dvd/iso-image.nix
parentf6f5151d5736f3a563787dd4adc9e41e62d9ed5d (diff)
downloadnixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.tar
nixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.tar.gz
nixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.tar.bz2
nixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.tar.lz
nixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.tar.xz
nixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.tar.zst
nixpkgs-489548310fa17ff9df9342fbffd38ac21ac74fc9.zip
nixos/iso-image: add menu entry to disable display-manager
Diffstat (limited to 'nixos/modules/installer/cd-dvd/iso-image.nix')
-rw-r--r--nixos/modules/installer/cd-dvd/iso-image.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix
index 93c8ebaa249..d62db084458 100644
--- a/nixos/modules/installer/cd-dvd/iso-image.nix
+++ b/nixos/modules/installer/cd-dvd/iso-image.nix
@@ -284,6 +284,14 @@ let
         ${buildMenuAdditionalParamsGrub2 config "video=1920x1080@60"}
       }
 
+      # If we boot into a graphical environment where X is autoran
+      # and always crashes, it makes the media unusable. Allow the user
+      # to disable this.
+      submenu "Disable display-manager" --class quirk-disable-displaymanager {
+        ${grubMenuCfg}
+        ${buildMenuAdditionalParamsGrub2 config "systemd.mask=display-manager.service"}
+      }
+
       # Some laptop and convertibles have the panel installed in an
       # inconvenient way, rotated away from the keyboard.
       # Those entries makes it easier to use the installer.