Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-01-22 09:10:36 +00:00
parent 24401a18c6
commit 54cce2b59e

View File

@@ -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;
};
}