about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2020-02-23 07:39:48 -0500
committerGitHub <noreply@github.com>2020-02-23 07:39:48 -0500
commit65bdc05ae8059fbaac4479eca7a422db9a1e5870 (patch)
tree075bec006982bf05f91887ba38f22251079910a1 /nixos
parentdd4cf6639baaa51345ba967ed51e25c6c492cf65 (diff)
parentad4565caa1a8ecaee79295178b07c07273b478d8 (diff)
downloadnixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.tar
nixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.tar.gz
nixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.tar.bz2
nixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.tar.lz
nixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.tar.xz
nixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.tar.zst
nixlib-65bdc05ae8059fbaac4479eca7a422db9a1e5870.zip
Merge pull request #78935 from worldofpeace/update-gnome3-iso-expression
installation-cd-graphical-gnome: updates
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix b/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix
index 23c3426bff08..62cbdbcfd17b 100644
--- a/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix
+++ b/nixos/modules/installer/cd-dvd/installation-cd-graphical-gnome.nix
@@ -1,5 +1,4 @@
-# This module defines a NixOS installation CD that contains X11 and
-# GNOME 3.
+# This module defines a NixOS installation CD that contains GNOME.
 
 { lib, ... }:
 
@@ -10,10 +9,22 @@ with lib;
 
   services.xserver.desktopManager.gnome3.enable = true;
 
-  # Auto-login as root.
-  services.xserver.displayManager.gdm.autoLogin = {
+  # Wayland can be problematic for some hardware like Nvidia graphics cards.
+  services.xserver.displayManager.defaultSession = "gnome-xorg";
+
+  services.xserver.displayManager.gdm = {
     enable = true;
-    user = "root";
+    # autoSuspend makes the machine automatically suspend after inactivity.
+    # It's possible someone could/try to ssh'd into the machine and obviously
+    # have issues because it's inactive.
+    # See:
+    # * https://github.com/NixOS/nixpkgs/pull/63790
+    # * https://gitlab.gnome.org/GNOME/gnome-control-center/issues/22
+    autoSuspend = false;
+    autoLogin = {
+      enable = true;
+      user = "nixos";
+    };
   };
 
 }