From a745d7353e9ae83d9a666a6e6897bf25be696b81 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 27 Feb 2021 18:32:10 +0100 Subject: [PATCH] sway: Add autostart to zshrc instead of zprofile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit home-manager’s sessionVariables are not loaded yet when sway starts. --- 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 6f988c9..095eaec 100644 --- a/users/simon/modules/sway.nix +++ b/users/simon/modules/sway.nix @@ -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