summary refs log tree commit diff stats
path: root/user/modules
diff options
context:
space:
mode:
Diffstat (limited to 'user/modules')
-rw-r--r--user/modules/javascript.nix9
-rw-r--r--user/modules/npm.nix5
-rw-r--r--user/modules/satoshipay.nix4
3 files changed, 13 insertions, 5 deletions
diff --git a/user/modules/javascript.nix b/user/modules/javascript.nix
index eaae2ca1..4c75ea10 100644
--- a/user/modules/javascript.nix
+++ b/user/modules/javascript.nix
@@ -47,4 +47,13 @@ in
     node2nixPackages.dockerfile-language-server-nodejs
     node2nixPackages.yaml-language-server
   ]);
+  home.file.".npmrc".text = ''
+    prefix=''${HOME}/.local
+    //registry.npmjs.org/:_authToken=''${NPM_AUTH_TOKEN}
+    always-auth=true
+    sign-git-tag=true
+    rebuild-bundle=false
+    update-notifier=false
+    registry=https://registry.npmjs.org/
+  '';
 }
diff --git a/user/modules/npm.nix b/user/modules/npm.nix
deleted file mode 100644
index d2ba55d9..00000000
--- a/user/modules/npm.nix
+++ /dev/null
@@ -1,5 +0,0 @@
-{ config, pkgs, ... }:
-
-{
-  home.file.".npmrc".source = ../javascript/.npmrc;
-}
diff --git a/user/modules/satoshipay.nix b/user/modules/satoshipay.nix
index d59c4f1f..5821103d 100644
--- a/user/modules/satoshipay.nix
+++ b/user/modules/satoshipay.nix
@@ -44,4 +44,8 @@ in
       contents = spGitConfig;
     }
   ];
+
+  home.file.".npmrc".text = ''
+    @satoshipay:registry=https://registry.npmjs.org/
+  '';
 }