diff --git a/hosts/common/configs/user/console/zsh/default.nix b/hosts/common/configs/user/console/zsh/default.nix index c3a11a9..e820075 100644 --- a/hosts/common/configs/user/console/zsh/default.nix +++ b/hosts/common/configs/user/console/zsh/default.nix @@ -4,7 +4,12 @@ }: { config, pkgs, ... }: { - environment.persistence."/persist"."${home}/.local/share/zsh" = { }; + environment = { + persistence."/persist"."${home}/.local/share/zsh" = { }; + # If we set this under home-manager.users.${user}.home.sessionVariables, + # it runs too late in the init process and zsh fails. + sessionVariables.ZDOTDIR = "$HOME/.config/zsh"; + }; home-manager.users.${user} = { imports = [ ./options.nix ]; @@ -33,9 +38,6 @@ ''; }; - home = { - file.".zshenv".enable = false; - sessionVariables.ZDOTDIR = "${home}/.config/zsh"; - }; + home.file.".zshenv".enable = false; }; }