home/xdg: set base dirs for npm

This commit is contained in:
Oystein Kristoffer Tveit 2024-12-03 13:20:41 +01:00
parent 6a70c086f9
commit 8a41a97bbf
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@
home.sessionVariables = let
inherit (config.xdg) dataHome cacheHome configHome userDirs;
runtimeDir = "/run/user/${toString config.home.uid}";
in {
TEXMFHOME = "${dataHome}/texmf";
TEXMFVAR = "${cacheHome}/texlive";
@ -36,6 +37,9 @@
ICEAUTHORITY = "${cacheHome}/ICEauthority";
NIMBLE_DIR = "${dataHome}/nimble";
NLTK_DATA = "${dataHome}/nltk_data";
NPM_CONFIG_CACHE="${cacheHome}/npm";
NPM_CONFIG_INIT_MODULE="${configHome}/npm/config/npm-init.js";
NPM_CONFIG_TMP="${runtimeDir}/npm";
NRFUTIL_HOME = "${dataHome}/nrfutil";
NUGET_PACKAGES = "${cacheHome}/nuget-packages";
PARALLEL_HOME = "${configHome}/parallel";