diff --git a/modules/gui.nix b/modules/gui.nix index af7293f..1ebcae7 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -14,16 +14,14 @@ let in { # Display manager - services.xserver.enable = true; - services.xserver.displayManager = { - defaultSession = "sway"; - autoLogin = { - enable = true; - user = "coolneng"; - }; - lightdm = { - enable = true; - greeter.enable = false; + services.greetd = { + enable = true; + settings = rec { + initial_session = { + command = "${sway}/bin/sway"; + user = "coolneng"; + }; + default_session = initial_session; }; };