diff --git a/profiles/sway/autostart.nix b/profiles/sway/autostart.nix index bf814f5..494fc81 100644 --- a/profiles/sway/autostart.nix +++ b/profiles/sway/autostart.nix @@ -8,9 +8,12 @@ in }; config = lib.mkIf cfg.enable { - services.displayManager.lemurs = { - enable = true; - settings.environment_switcher.include_tty_shell = true; - }; + + # start sway if login happens + environment.interactiveShellInit = '' + if test `tty` = /dev/tty1; then + exec sway + fi + ''; }; }