From 088580c9678c1ef31b35133376b5654a5ed246ac Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Wed, 13 Nov 2024 20:00:16 +0100 Subject: [PATCH] Use greetd as login manager --- configuration.nix | 13 +++++++++++-- home/terminal/default.nix | 7 ------- home/wayland/default.nix | 1 - 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/configuration.nix b/configuration.nix index f2d01b7..128a794 100644 --- a/configuration.nix +++ b/configuration.nix @@ -146,7 +146,6 @@ vim-full vlc wally-cli - wayland wayshot wdisplays wget @@ -191,7 +190,17 @@ services.passSecretService.enable = true; services.tailscale.enable = true; services.gvfs.enable = true; - services.xserver.displayManager.gdm.enable = true; + + services.greetd = { + enable = true; + settings = { + default_session = { + command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --asterisks --cmd sway"; + user = "rothe"; + }; + }; + }; + services.blueman.enable = true; services.syncthing = { diff --git a/home/terminal/default.nix b/home/terminal/default.nix index deeb6bd..be2b528 100644 --- a/home/terminal/default.nix +++ b/home/terminal/default.nix @@ -26,13 +26,6 @@ programs.fish = { enable = true; - # start sway on login - loginShellInit = '' - if test -z "$DISPLAY" -a $XDG_VTNR = 1 - exec sway - end - ''; - # TODO add PYTHONPATH on non nix systems # disable greeting shellInit = '' set fish_greeting diff --git a/home/wayland/default.nix b/home/wayland/default.nix index 0db9eae..8d30ebb 100644 --- a/home/wayland/default.nix +++ b/home/wayland/default.nix @@ -92,7 +92,6 @@ style = ./waybar.css; }; - # Automatic display output management services.kanshi = { enable = true;