all repos — nixfiles @ 18249c15bb7ae17d5ae43711ab9cc34e326d7f14

System and user configuration, managed by nix and home-manager

javascript: enable running npm inside Emacs
Alan Pearce alan@alanpearce.eu
Wed, 03 Jun 2020 10:00:45 +0200
commit

18249c15bb7ae17d5ae43711ab9cc34e326d7f14

parent

7ce360f764ef2255f620662ceb424a0c81a2b358

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M user/settings/javascript.nixuser/settings/javascript.nix
@@ -110,7 +110,8 @@ }; 
   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