From 4fc0795c344810568f977bee635e8953e807d83b Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Sat, 2 Dec 2017 19:52:20 +0100 Subject: [PATCH] zsh: Use homeDirectory --- modules/programs/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 4a7c4de8..37af41be 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -27,7 +27,7 @@ let mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases ); - zdotdir = "$HOME/" + cfg.dotDir; + zdotdir = config.home.homeDirectory + "/" + cfg.dotDir; historyModule = types.submodule { options = { @@ -322,7 +322,7 @@ in }) (mkIf (cfg.dotDir != null) { - programs.zsh.sessionVariables.ZDOTDIR = if config.home.sessionVariableSetter == "pam" then "@{HOME}/" + cfg.dotDir else zdotdir; + programs.zsh.sessionVariables.ZDOTDIR = zdotdir; # When dotDir is set, only use ~/.zshenv to source ZDOTDIR/.zshenv, # This is so that if ZDOTDIR happens to be