diff --git a/home/program/bash/default.nix b/home/program/bash/default.nix index 73a2c9c..2b78650 100644 --- a/home/program/bash/default.nix +++ b/home/program/bash/default.nix @@ -46,7 +46,7 @@ in '' + lib.optionalString config.module.sway.enable '' # Autostart Sway. - if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]]; then + if [[ -z $DISPLAY ]] && [[ "$(tty)" = "/dev/tty1" ]] && [[ $UID != 0 ]]; then exec sway fi '';