diff options
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/base.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix index b181d4ad..eda280fa 100644 --- a/user/settings/base.nix +++ b/user/settings/base.nix @@ -42,11 +42,16 @@ }; }; }; - EMAIL = "alan@alanpearce.eu"; - XDG_CACHE_HOME = if pkgs.stdenv.isDarwin then "$HOME/Library/Caches/XDG" else "$HOME/.cache"; - XDG_CONFIG_HOME = "$HOME/.config"; - XDG_DATA_HOME = "$HOME/.local/share"; - }; + home.sessionVariables = + let + HOME = builtins.getEnv "HOME"; + in + { + EMAIL = "alan@alanpearce.eu"; + XDG_CACHE_HOME = if pkgs.stdenv.isDarwin then "${HOME}/Library/Caches/XDG" else "${HOME}/.cache"; + XDG_CONFIG_HOME = "${HOME}/.config"; + XDG_DATA_HOME = "${HOME}/.local/share"; + }; programs.zsh.shellAliases = { make = "remake"; |