diff options
author | Alan Pearce | 2019-10-04 21:55:04 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-04 21:55:04 +0200 |
commit | 32259e9f49a9e4d7790f4fd694d573355c89a943 (patch) | |
tree | d540e9c4e898e7a470a98626184edb8c59ae95af /user/modules | |
parent | c918534796c695c42824d7f34f8f442b8e0e17cc (diff) | |
download | nixfiles-32259e9f49a9e4d7790f4fd694d573355c89a943.tar.lz nixfiles-32259e9f49a9e4d7790f4fd694d573355c89a943.tar.zst nixfiles-32259e9f49a9e4d7790f4fd694d573355c89a943.zip |
Combine javascript configurations
Diffstat (limited to 'user/modules')
-rw-r--r-- | user/modules/javascript.nix | 9 | ||||
-rw-r--r-- | user/modules/npm.nix | 5 | ||||
-rw-r--r-- | user/modules/satoshipay.nix | 4 |
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/ + ''; } |