all repos — nixfiles @ c74502252781fdfa816fc77e5af08eb0eb6b1d2c

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

Use system nodejs version for node2nix packages
Alan Pearce alan@alanpearce.eu
Tue, 02 Mar 2021 11:55:44 +0100
commit

c74502252781fdfa816fc77e5af08eb0eb6b1d2c

parent

d3a443b5451a566e4039aeaee1672bd86ea482eb

2 files changed, 12 insertions(+), 3 deletions(-)

jump to
M user/packages/node2nix/Makefileuser/packages/node2nix/Makefile
@@ -1,5 +1,5 @@ default.nix: node-packages.json
-	nix-shell -p nodePackages.node2nix --run "node2nix --nodejs-12 --input $<"
+	nix-shell -p nodePackages.node2nix --run "node2nix --nodejs-14 --input $<"
 
 install: default.nix
 	nix-env -f default.nix -i
M user/settings/javascript.nixuser/settings/javascript.nix
@@ -1,9 +1,18 @@ { config, pkgs, ... }:
 
 let
-  node = pkgs.nodejs-12_x;
+  node = pkgs.nodejs-14_x;
 in
-{ home.packages = (with pkgs; [
+{
+  nixpkgs.overlays = [
+    (self: super: {
+      node2nixPackages = super.callPackage ../packages/node2nix {
+        nodejs = node;
+      };
+    })
+  ];
+
+  home.packages = (with pkgs; [
     node
   ] ++ (
     if stdenv.isDarwin