From f78b6303b9774be612d652e4a7be76da83dad808 Mon Sep 17 00:00:00 2001 From: coolneng Date: Wed, 19 Oct 2022 13:58:35 +0200 Subject: [PATCH] Replace lightdm with greetd --- modules/gui.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) 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; }; };