all repos — nixfiles @ c978f917ebf52d76beac40eacdaed815f329615b

System and user configuration, managed by nix and home-manager

Add node2nix packages as overlay
Alan Pearce alan@alanpearce.eu
Fri, 13 Dec 2019 15:15:19 +0100
commit

c978f917ebf52d76beac40eacdaed815f329615b

parent

2bd80eae7de79991c76d1b41690b99fd077ab080

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M user/overlays/extra-packages.nixuser/overlays/extra-packages.nix
@@ -4,4 +4,7 @@ lumen = super.callPackage ../packages/lumen {     buildGoPackage = self.buildGo112Package;
   };
   ripcord = super.callPackage ../packages/ripcord {};
+  node2nixPackages = import ../packages/node2nix {
+    pkgs = super;
+  };
 }
M user/settings/javascript.nixuser/settings/javascript.nix
@@ -3,9 +3,6 @@ let
   node = pkgs.nodejs-12_x;
   node10Packages = pkgs.nodePackages_10_x;
-  node2nixPackages = import ../packages/node2nix/default.nix {
-    inherit pkgs;
-  };
 in
 { home.packages = (with pkgs; [
     node
@@ -37,8 +34,8 @@ csslint     eslint_d
     prettier
     typescript
-  ]) ++ (with node2nixPackages; [
-    node2nixPackages."pnpm-4.1.7"
+  ]) ++ (with pkgs.node2nixPackages; [
+    pkgs.node2nixPackages."pnpm-4.1.7"
 
     bunyan
     netlify-cli