summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--users/seth/shell/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/users/seth/shell/default.nix b/users/seth/shell/default.nix
index e48757e..93472d9 100644
--- a/users/seth/shell/default.nix
+++ b/users/seth/shell/default.nix
@@ -52,14 +52,16 @@
};
home = {
- sessionVariables = {
+ sessionVariables = let
+ inherit (config.xdg) configHome dataHome stateHome;
+ in {
EDITOR = "nvim";
VISUAL = "$EDITOR";
GPG_TTY = "$(tty)";
- CARGO_HOME = "${config.xdg.dataHome}/cargo";
- RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
- LESSHISTFILE = "${config.xdg.stateHome}/less/history";
- NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
+ CARGO_HOME = "${dataHome}/cargo";
+ RUSTUP_HOME = "${dataHome}/rustup";
+ LESSHISTFILE = "${stateHome}/less/history";
+ NPM_CONFIG_USERCONFIG = "${configHome}/npm/npmrc";
};
shellAliases = {