helm/modules/dev/node.nix

19 lines
363 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ 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
];
};
}