sway: Make shells reload environment every time
Otherwise changing environment variables requires me to log out.
This commit is contained in:
parent
267eecf000
commit
236ac3488a
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue