summaryrefslogtreecommitdiff
path: root/seth/programs/npm.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2022-12-01 22:17:21 -0500
committerseth <[email protected]>2022-12-01 22:17:39 -0500
commitaca5eff381f76bc29f25191efc281ccf50cf0e3e (patch)
treee265f9ad2048225a56beba60197fb2b63f848af5 /seth/programs/npm.nix
parentae4332f4e2f6c95289f43e0c233ee75066669669 (diff)
initial commit of files
Diffstat (limited to 'seth/programs/npm.nix')
-rw-r--r--seth/programs/npm.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/seth/programs/npm.nix b/seth/programs/npm.nix
new file mode 100644
index 0000000..8f311f8
--- /dev/null
+++ b/seth/programs/npm.nix
@@ -0,0 +1,12 @@
+{ config, ...}:
+
+{
+ config.programs.npm = {
+ enable = true;
+ npmrc = ''
+ prefix=${config.xdg.dataHome}/npm
+ cache=${config.xdg.cacheHome}/npm
+ init-module=${config.xdg.configHome}/npm/config/npm-init.js
+ '';
+ };
+}