helm/modules/dev/node.nix
2019-08-06 13:56:54 -04:00

19 lines
363 B
Nix

{ config, lib, pkgs, ... }:
{
imports = [ ./. ];
environment = {
variables = {
NPM_CONFIG_USERCONFIG = "$XDG_CONFIG_HOME/npm/config";
NPM_CONFIG_CACHE = "$XDG_CACHE_HOME/npm";
NPM_CONFIG_TMP = "$XDG_RUNTIME_DIR/npm";
NPM_CONFIG_PREFIX = "$XDG_CACHE_HOME/npm";
};
systemPackages = with pkgs; [
nodejs
];
};
}