19 lines
423 B
Nix
19 lines
423 B
Nix
_: {
|
|
programs.zsh.profileExtra = ''
|
|
# If running from tty1 start sway
|
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
|
systemctl --user unset-environment \
|
|
SWAYSOCK \
|
|
I3SOCK \q
|
|
WAYLAND_DISPLAY \
|
|
DISPLAY \
|
|
IN_NIX_SHELL \
|
|
__HM_SESS_VARS_SOURCED \
|
|
GPG_TTY \
|
|
NIX_PATH \
|
|
SHLVL
|
|
exec env --unset=SHLVL systemd-cat -t sway -- sway
|
|
fi
|
|
'';
|
|
}
|