summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-06-03 10:00:45 +0200
committerAlan Pearce2020-06-03 10:11:02 +0200
commit18249c15bb7ae17d5ae43711ab9cc34e326d7f14 (patch)
treee42f4c35079fafe545d4c2a9ebdf24d4394792ce
parent7ce360f764ef2255f620662ceb424a0c81a2b358 (diff)
downloadnixfiles-18249c15bb7ae17d5ae43711ab9cc34e326d7f14.tar.lz
nixfiles-18249c15bb7ae17d5ae43711ab9cc34e326d7f14.tar.zst
nixfiles-18249c15bb7ae17d5ae43711ab9cc34e326d7f14.zip
javascript: enable running npm inside Emacs
-rw-r--r--user/settings/javascript.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/settings/javascript.nix b/user/settings/javascript.nix
index f438c784..d4e1b0b2 100644
--- a/user/settings/javascript.nix
+++ b/user/settings/javascript.nix
@@ -110,7 +110,8 @@ in
 
   home.file.".npmrc".text = ''
     prefix=''${HOME}/.local
-    //registry.npmjs.org/:_authToken=''${NPM_AUTH_TOKEN}
+    cache=${config.xdg.cacheHome}/npm/
+    //registry.npmjs.org/:_authToken=${config.home.sessionVariables.NPM_AUTH_TOKEN}
     always-auth=true
     sign-git-tag=true
     rebuild-bundle=false