Extract a node mixin

This commit is contained in:
Oliver Davies 2025-04-05 23:57:55 +01:00
parent dd8c556963
commit 7df9eb7b4f
5 changed files with 21 additions and 18 deletions

View file

@ -1,6 +1,5 @@
{
imports = [
./node.nix
./ranger.nix
];
}

View file

@ -1,17 +0,0 @@
{ config, ... }:
let
inherit (config.xdg) configHome dataHome stateHome;
in
{
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''
cache=${configHome}/npm
init-module=${configHome}/npm/config/npm-init.js
logs-dir=${stateHome}/npm/logs
prefix=${dataHome}/npm
'';
home.sessionVariables = {
NPM_CONFIG_USERCONFIG = "${configHome}/npm/npmrc";
};
}