sway: Make shells reload environment every time

Otherwise changing environment variables requires me to log out.
This commit is contained in:
Simon Bruder 2021-05-01 16:32:40 +02:00
parent 267eecf000
commit 236ac3488a
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -247,7 +247,7 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
programs.zsh.initExtra = ''
if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
export XDG_SESSION_TYPE="wayland" # otherwise set to tty
unset __HM_SESS_VARS_SOURCED # otherwise sessionVariables are not updated
unset __HM_SESS_VARS_SOURCED __NIXOS_SET_ENVIRONMENT_DONE # otherwise sessionVariables are not updated
exec systemd-cat -t sway sway
fi
'';