sway: Add autostart to zshrc instead of zprofile

home-manager’s sessionVariables are not loaded yet when sway starts.
pull/48/head
Simon Bruder 2021-02-27 18:32:10 +01:00
parent b855ed533d
commit a745d7353e
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
};
# Start on tty1
programs.zsh.profileExtra = ''
programs.zsh.initExtra = ''
if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
export XDG_SESSION_TYPE="wayland" # otherwise set to tty
exec sway