From fd9b0ecef4142a62b45404700ba1cff488f84a73 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 23 May 2024 13:31:11 +0200 Subject: refactor(modules/home): Setup as "normal" NixOS module --- modules/home/conf/npm/.npmrc | 6 ++++++ modules/home/conf/npm/default.nix | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 modules/home/conf/npm/.npmrc create mode 100644 modules/home/conf/npm/default.nix (limited to 'modules/home/conf/npm') diff --git a/modules/home/conf/npm/.npmrc b/modules/home/conf/npm/.npmrc new file mode 100644 index 00000000..d0d846bd --- /dev/null +++ b/modules/home/conf/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/modules/home/conf/npm/default.nix b/modules/home/conf/npm/default.nix new file mode 100644 index 00000000..7b4bb6a1 --- /dev/null +++ b/modules/home/conf/npm/default.nix @@ -0,0 +1,7 @@ +{ + config, + pkgs, + ... +}: { + xdg.configFile."npm/.npmrc".source = ./.npmrc; +} -- cgit 1.4.1