From 236ac3488a10aaf3c8be2e0c737943c623eaaba3 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 1 May 2021 16:32:40 +0200 Subject: [PATCH] sway: Make shells reload environment every time Otherwise changing environment variables requires me to log out. --- users/simon/modules/sway.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/simon/modules/sway.nix b/users/simon/modules/sway.nix index 05e3dbb..029b36b 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -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 '';