diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 25c988c35..c282c8325 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -492,7 +492,7 @@ in (mkIf (cfg.dotDir != null) { home.file."${relToDotDir ".zshenv"}".text = '' - ZDOTDIR=${zdotdir} + export ZDOTDIR=${zdotdir} ''; # When dotDir is set, only use ~/.zshenv to source ZDOTDIR/.zshenv,