diff --git a/guix/config.scm b/guix/config.scm index e4d63be..e3f8000 100755 --- a/guix/config.scm +++ b/guix/config.scm @@ -81,7 +81,11 @@ (services (append (modify-services %desktop-services - (delete gdm-service-type)) + (delete gdm-service-type) + (delete login-service-type) + (delete mingetty-service-type) + (delete console-font-service-type) + ) ;; Configure swaylock (list (service screen-locker-service-type (screen-locker-configuration @@ -89,6 +93,21 @@ (program (file-append swaylock "/bin/swaylock")) (using-pam? #t) (using-setuid? #f))) + + (service greetd-service-type + (greetd-configuration + (greeter-supplementary-groups (list "video" "input")) + (terminals + (list + ;; TTY1 is the graphical login screen for Sway + (greetd-terminal-configuration + (terminal-vt "1") + (terminal-switch #t) + (default-session-command (greetd-wlgreet-sway-session)) + ) + + (greetd-terminal-configuration (terminal-vt "2")) + (greetd-terminal-configuration (terminal-vt "3")))))) )))