19 lines
428 B
Nix
19 lines
428 B
Nix
|
{ ... }: {
|
||
|
programs.zsh.profileExtra = ''
|
||
|
# If running from tty1 start sway
|
||
|
if [ "$(tty)" = "/dev/tty1" ]; then
|
||
|
systemctl --user unset-environment \
|
||
|
SWAYSOCK \
|
||
|
I3SOCK \
|
||
|
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
|
||
|
'';
|
||
|
}
|