From f6f5151d5736f3a563787dd4adc9e41e62d9ed5d Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Thu, 20 Sep 2018 11:11:48 -0400 Subject: [PATCH 1/3] installer: autorun xserver in graphical media --- .../installer/cd-dvd/installation-cd-graphical-base.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix b/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix index 1578e1547bc1f..719ba5ffb1275 100644 --- a/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix +++ b/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix @@ -25,9 +25,6 @@ with lib; services.xserver = { enable = true; - # Don't start the X server by default. - autorun = mkForce false; - # Automatically login as nixos. displayManager.slim = { enable = true; From 489548310fa17ff9df9342fbffd38ac21ac74fc9 Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 28 Sep 2019 17:21:57 -0400 Subject: [PATCH 2/3] nixos/iso-image: add menu entry to disable display-manager --- nixos/modules/installer/cd-dvd/iso-image.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/installer/cd-dvd/iso-image.nix b/nixos/modules/installer/cd-dvd/iso-image.nix index 93c8ebaa2496d..d62db08445847 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. From 159b12bee7a9b30b0cfe25f53efcc443a130313d Mon Sep 17 00:00:00 2001 From: worldofpeace Date: Sat, 28 Sep 2019 18:17:04 -0400 Subject: [PATCH 3/3] rl-2003: graphical image autoruns X --- nixos/doc/manual/release-notes/rl-2003.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2003.xml b/nixos/doc/manual/release-notes/rl-2003.xml index 6de0214b1fb5b..bdf56acd54519 100644 --- a/nixos/doc/manual/release-notes/rl-2003.xml +++ b/nixos/doc/manual/release-notes/rl-2003.xml @@ -28,6 +28,14 @@ Postgresql for NixOS service now defaults to v11. + + + The graphical installer image starts the graphical session automatically. + Before you'd be greeted by a tty and asked to enter systemctl start display-manager. + It is now possible to disable the display-manager from running by selecting the Disable display-manager + quirk in the boot menu. + +