nixos/gdm: do not restart on reload switch (#70357)

Not entirely sure how this works, but this does seem to fix reload switch
killing the current graphical session.

authored by Tor Hedin Brønner and committed by GitHub 5b7c9001 fb5f649b

+5 -3
+2 -2
nixos/modules/services/x11/display-managers/gdm.nix
··· 165 165 "rc-local.service" 166 166 "systemd-machined.service" 167 167 "systemd-user-sessions.service" 168 - "getty@tty1.service" 168 + "getty@tty${gdm.initialVT}.service" 169 169 "plymouth-quit.service" 170 170 "plymouth-start.service" 171 171 ]; 172 172 systemd.services.display-manager.conflicts = [ 173 - "getty@tty1.service" 173 + "getty@tty${gdm.initialVT}.service" 174 174 "plymouth-quit.service" 175 175 ]; 176 176 systemd.services.display-manager.onFailure = [
+3 -1
pkgs/desktops/gnome-3/core/gdm/default.nix
··· 31 31 substituteInPlace ./configure --replace "/usr/bin/X" "${xorg.xorgserver.out}/bin/X" 32 32 ''; 33 33 34 + initialVT = "7"; 35 + 34 36 configureFlags = [ 35 37 "--sysconfdir=/etc" 36 38 "--localstatedir=/var" 37 39 "--with-plymouth=yes" 38 40 "--enable-gdm-xsession" 39 - # "--with-initial-vt=7" 41 + "--with-initial-vt=${initialVT}" 40 42 "--with-systemdsystemunitdir=$(out)/etc/systemd/system" 41 43 "--with-udevdir=$(out)/lib/udev" 42 44 ];