sway: Make shells reload environment every time

Otherwise changing environment variables requires me to log out.
pull/52/head
Simon Bruder 2021-05-01 16:32:40 +02:00
parent 267eecf000
commit 236ac3488a
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

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
'';