diff options
| author | seth <[email protected]> | 2023-04-21 08:00:42 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-04-21 08:00:45 -0400 |
| commit | 3a0542841309d7201fe49db12ae039eb1910f8cb (patch) | |
| tree | 9d0435bd8897185e5fa1aee7adcf070b5afc2e55 /users | |
| parent | d34145b39a6282455499973e54efc8a6aace2712 (diff) | |
shorten session variables declaration
Diffstat (limited to 'users')
| -rw-r--r-- | users/seth/shell/default.nix | 12 |
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 = { |
