all repos — nixfiles @ 32259e9f49a9e4d7790f4fd694d573355c89a943

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

Combine javascript configurations
Alan Pearce alan@alanpearce.eu
Fri, 04 Oct 2019 21:55:04 +0200
commit

32259e9f49a9e4d7790f4fd694d573355c89a943

parent

c918534796c695c42824d7f34f8f442b8e0e17cc

D user/javascript/.npmrc
@@ -1,8 +0,0 @@-prefix=${HOME}/.local
-//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
-@satoshipay:registry=https://registry.npmjs.org/
-always-auth=true
-sign-git-tag=true
-rebuild-bundle=false
-update-notifier=false
-registry=https://registry.npmjs.org/
M user/modules/javascript.nixuser/modules/javascript.nix
@@ -47,4 +47,13 @@ node2nixPackages.prettier_d     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/
+  '';
 }
D user/modules/npm.nix
@@ -1,5 +0,0 @@-{ config, pkgs, ... }:
-
-{
-  home.file.".npmrc".source = ../javascript/.npmrc;
-}
M user/modules/satoshipay.nixuser/modules/satoshipay.nix
@@ -44,4 +44,8 @@ condition = "gitdir:~/projects/gitlab.satoshipay.tech";       contents = spGitConfig;
     }
   ];
+
+  home.file.".npmrc".text = ''
+    @satoshipay:registry=https://registry.npmjs.org/
+  '';
 }
M user/prefect.nixuser/prefect.nix
@@ -8,6 +8,7 @@ ./modules/emacs.nix     ./modules/git.nix
     ./modules/gnupg.nix
     ./modules/i3.nix
+    ./modules/javascript.nix
     ./modules/nixos.nix
     ./modules/rofi.nix
     ./modules/satoshipay.nix
M user/satoshipad.nixuser/satoshipad.nix
@@ -10,9 +10,9 @@ ./modules/git.nix     ./modules/gnupg.nix
     ./modules/i3.nix
     ./modules/isync.nix
+    ./modules/javascript.nix
     ./modules/msmtp.nix
     ./modules/nixos.nix
-    ./modules/npm.nix
     ./modules/rofi.nix
     ./modules/satoshipay.nix
     ./modules/sxhkd.nix
M user/trillian.nixuser/trillian.nix
@@ -6,8 +6,8 @@ ./modules/base.nix     ./modules/emacs.nix
     ./modules/git.nix
     ./modules/gnupg.nix
+    ./modules/javascript.nix
     ./modules/nix.nix
-    ./modules/npm.nix
     ./modules/satoshipay.nix
     ./modules/tabnine.nix
     ./modules/trezor.nix
D user/yarn/.yarnrc
@@ -1,9 +0,0 @@-# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
-# yarn lockfile v1
-
-
-registry "https://registry.npmjs.org/"
-disable-self-update-check true
-email alan@alanpearce.eu
-username alanpearce
-yarn-offline-mirror-pruning true