From 7ad5bf282b5f8b86c2d12348b5306a8714fef43d Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Wed, 8 Apr 2020 21:15:37 +0300 Subject: [PATCH] feat: including npm packages in nix-config! --- .gitignore | 1 + modules/dev/javascript.nix | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/modules/dev/javascript.nix b/modules/dev/javascript.nix index f105fed..e9b4347 100644 --- a/modules/dev/javascript.nix +++ b/modules/dev/javascript.nix @@ -1,6 +1,9 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +let fromNpm = import ./npm { inherit pkgs; }; +in { home-manager.users.adrielus.home.packages = with pkgs; [ nodejs nodePackages.node2nix + fromNpm.pnpm ]; }