From 7a2023277da1c362e3fbc0b606e2fbaa5201b12e Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 10 Feb 2020 05:52:18 +0100 Subject: Fix deprecated displayManager.auto.enable option Since a while[1], the services.xserver.displayManager.auto option is deprecated. Since first of all SLiM got removed and now every display manager supports auto-login, I switched the labtops module to use the LightDM implementation. Since the common x11 test module still exposes a similar interface, we only need to use the same options from the test-support option, which should hopefully be a "sane default" suitable for tests. [1]: https://github.com/NixOS/nixpkgs/commit/c95612a5a2d4bd93011c042066c Signed-off-by: aszlig Cc: @Profpatsch --- modules/user/openlab/labtops.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/user') diff --git a/modules/user/openlab/labtops.nix b/modules/user/openlab/labtops.nix index ea745c20..14aaff05 100644 --- a/modules/user/openlab/labtops.nix +++ b/modules/user/openlab/labtops.nix @@ -76,8 +76,9 @@ in xkbOptions = "eurosign:e"; displayManager = { - auto.enable = true; - auto.user = "openlab"; + lightdm.enable = true; + lightdm.autoLogin.enable = true; + lightdm.autoLogin.user = "openlab"; sessionCommands = with pkgs; '' ${xorg.xset}/bin/xset r rate 250 35 ''; -- cgit 1.4.1