sway: Add autostart to zshrc instead of zprofile
home-manager’s sessionVariables are not loaded yet when sway starts.
This commit is contained in:
parent
b855ed533d
commit
a745d7353e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue