From 56b32ce1ddef50b208a91ced0b48dbae424bd349 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Thu, 3 Nov 2022 08:28:15 -0700 Subject: [PATCH] aaaaaaaaa --- modules/ezpc.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = {