about summary refs log tree commit diff stats
path: root/home-manager/npm
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-11 22:24:30 +0100
committerene <ene@sils.li>2023-02-12 17:48:12 +0100
commit3ad750a3d977b3472a8a67acb7aa3613be7f70bb (patch)
treed3289733fa29b10c835fd8295b5c9737160c10aa /home-manager/npm
parentFix(home-manager): Import home-manager correctly (diff)
downloadnixos-config-3ad750a3d977b3472a8a67acb7aa3613be7f70bb.zip
Fix(home-manager): Improve Firefox configuration
Diffstat (limited to 'home-manager/npm')
-rw-r--r--home-manager/npm/.npmrc6
-rw-r--r--home-manager/npm/default.nix9
2 files changed, 15 insertions, 0 deletions
diff --git a/home-manager/npm/.npmrc b/home-manager/npm/.npmrc
new file mode 100644
index 00000000..d0d846bd
--- /dev/null
+++ b/home-manager/npm/.npmrc
@@ -0,0 +1,6 @@
+scripts-prepend-node-path=true
+node_gyp=
+prefix=${XDG_DATA_HOME}/npm
+cache=${XDG_CACHE_HOME}/npm
+tmp=${XDG_RUNTIME_DIR}/npm
+init-module=${XDG_CONFIG_HOME}/npm/config/npm-init.js
diff --git a/home-manager/npm/default.nix b/home-manager/npm/default.nix
new file mode 100644
index 00000000..d12ce73b
--- /dev/null
+++ b/home-manager/npm/default.nix
@@ -0,0 +1,9 @@
+{
+  config,
+  pkgs,
+  ...
+}: {
+  xdg.configFile."npm/.npmrc".source = ./.npmrc;
+}
+# vim: ts=2
+