From e6ceda1a4aac3ab66cf9d62bcf792102ac677303 Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 21 Oct 2022 17:12:23 +0200 Subject: [PATCH] Revert "Replace lightdm with greetd" This reverts commit f78b6303b9774be612d652e4a7be76da83dad808. --- modules/gui.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/modules/gui.nix b/modules/gui.nix index 1ebcae7..af7293f 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -14,14 +14,16 @@ let in { # Display manager - services.greetd = { - enable = true; - settings = rec { - initial_session = { - command = "${sway}/bin/sway"; - user = "coolneng"; - }; - default_session = initial_session; + services.xserver.enable = true; + services.xserver.displayManager = { + defaultSession = "sway"; + autoLogin = { + enable = true; + user = "coolneng"; + }; + lightdm = { + enable = true; + greeter.enable = false; }; };