about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-03-26 18:15:14 +0200
committerRobin Gloster <mail@glob.in>2017-03-27 17:20:56 +0200
commitd1228f95e9023f4283220f11d2213b0af26216ba (patch)
tree08fce2acfc86df864df3cf9b12203e0492e22904
parentd8dd2fb9e59fd7cd8cd4d3d969b4e8a322120365 (diff)
downloadnixlib-d1228f95e9023f4283220f11d2213b0af26216ba.tar
nixlib-d1228f95e9023f4283220f11d2213b0af26216ba.tar.gz
nixlib-d1228f95e9023f4283220f11d2213b0af26216ba.tar.bz2
nixlib-d1228f95e9023f4283220f11d2213b0af26216ba.tar.lz
nixlib-d1228f95e9023f4283220f11d2213b0af26216ba.tar.xz
nixlib-d1228f95e9023f4283220f11d2213b0af26216ba.tar.zst
nixlib-d1228f95e9023f4283220f11d2213b0af26216ba.zip
Revert "Revert "gdm module: only make xserver args overrideable""
This reverts commit 4e57e7f7c6db9a9c00f527eff80cb37890ba516d.

This actually broke gnome3 and didn't fix anything, I failed bisecting.
-rw-r--r--nixos/modules/services/x11/display-managers/gdm.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/x11/display-managers/gdm.nix b/nixos/modules/services/x11/display-managers/gdm.nix
index 1bf4fd3c089e..6c63fede857f 100644
--- a/nixos/modules/services/x11/display-managers/gdm.nix
+++ b/nixos/modules/services/x11/display-managers/gdm.nix
@@ -99,7 +99,8 @@ in
     services.xserver.displayManager.job =
       {
         environment = {
-          GDM_X_SERVER = "${cfg.xserverBin} ${toString cfg.xserverArgs}";
+          GDM_X_SERVER_EXTRA_ARGS = toString
+            (filter (arg: arg != "-terminate") cfg.xserverArgs);
           GDM_SESSIONS_DIR = "${cfg.session.desktops}";
           # Find the mouse
           XCURSOR_PATH = "~/.icons:${config.system.path}/share/icons";