diff --git a/modules/ezpc.nix b/modules/ezpc.nix index f9cccb3..ed714f8 100644 --- a/modules/ezpc.nix +++ b/modules/ezpc.nix @@ -35,7 +35,9 @@ in { }; environment.loginShellInit = lib.mkAfter '' - [[ "$(tty)" == /dev/tty1 ]] && exec sway + if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then + exec sway + fi ''; i18n.inputMethod = {