summary refs log tree commit diff
path: root/nixos/modules/services/x11/display-managers/lightdm.nix
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2017-02-26 16:22:21 +0000
committerobadz <obadz-git@obadz.com>2017-02-26 16:22:21 +0000
commit4b6f021251e60af9f61311e116eef043a2ed0d5d (patch)
tree1ba3c7ca4611eae9a93cf2886a69e2104e3bf1b2 /nixos/modules/services/x11/display-managers/lightdm.nix
parent6c36d9fa208ac1b03966e4349f4850b2ec4301be (diff)
downloadnixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.tar
nixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.tar.gz
nixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.tar.bz2
nixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.tar.lz
nixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.tar.xz
nixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.tar.zst
nixpkgs-4b6f021251e60af9f61311e116eef043a2ed0d5d.zip
Revert "lightdm: obbey services.xserver.{window/desktop}Manager.default"
This reverts commit 29caa185a7e4aaa0d621a4f117f3e8f653261fda.

Not clear what the proper thing to do is. cf94cdb59b renders this
question mostly moot. Reverting before 17.03 branch to avoid a repeat
of #19054.
Diffstat (limited to 'nixos/modules/services/x11/display-managers/lightdm.nix')
-rw-r--r--nixos/modules/services/x11/display-managers/lightdm.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix
index 4afef32aaa4..82b9a2fce5a 100644
--- a/nixos/modules/services/x11/display-managers/lightdm.nix
+++ b/nixos/modules/services/x11/display-managers/lightdm.nix
@@ -46,15 +46,13 @@ let
       [Seat:*]
       xserver-command = ${xserverWrapper}
       session-wrapper = ${dmcfg.session.script}
-      ${optionalString (elem defaultSessionName dmcfg.session.names) ''
-        user-session = ${defaultSessionName}
-      ''}
       ${optionalString cfg.greeter.enable ''
         greeter-session = ${cfg.greeter.name}
       ''}
       ${optionalString cfg.autoLogin.enable ''
         autologin-user = ${cfg.autoLogin.user}
         autologin-user-timeout = ${toString cfg.autoLogin.timeout}
+        autologin-session = ${defaultSessionName}
       ''}
       ${cfg.extraSeatDefaults}
     '';