From db493ad552a35ddc14dd6bd526a3aa17edf06a18 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Mon, 25 Jun 2018 00:11:55 +0200 Subject: [PATCH] nixos/npm: add `npm` to the system closure by default (#42420) --- nixos/modules/programs/npm.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/npm.nix b/nixos/modules/programs/npm.nix index 7ef172355c1f..5fdd4fa841a1 100644 --- a/nixos/modules/programs/npm.nix +++ b/nixos/modules/programs/npm.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, pkgs, ... }: with lib; @@ -39,6 +39,8 @@ in environment.etc."npmrc".text = cfg.npmrc; environment.variables.NPM_CONFIG_GLOBALCONFIG = "/etc/npmrc"; + + environment.systemPackages = [ pkgs.nodePackages.npm ]; }; }