From 0a608bd781dcda40144097b007fac0a0c60a8ee1 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 1 Aug 2023 15:31:42 +0200 Subject: Refactor(treewide): Move module configuration in separate files --- home-manager/soispha/config/npm/.npmrc | 6 ++++++ home-manager/soispha/config/npm/default.nix | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 home-manager/soispha/config/npm/.npmrc create mode 100644 home-manager/soispha/config/npm/default.nix (limited to 'home-manager/soispha/config/npm') diff --git a/home-manager/soispha/config/npm/.npmrc b/home-manager/soispha/config/npm/.npmrc new file mode 100644 index 00000000..d0d846bd --- /dev/null +++ b/home-manager/soispha/config/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/soispha/config/npm/default.nix b/home-manager/soispha/config/npm/default.nix new file mode 100644 index 00000000..7b4bb6a1 --- /dev/null +++ b/home-manager/soispha/config/npm/default.nix @@ -0,0 +1,7 @@ +{ + config, + pkgs, + ... +}: { + xdg.configFile."npm/.npmrc".source = ./.npmrc; +} -- cgit 1.4.1