diff --git a/README.md b/README.md index 5b63943..7f27282 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ The sections below list what each template includes. In all cases, you're free t - [Node.js][node] 18.7.0 - [pnpm] 7.3.0 - [Yarn] 1.22.19 +- [node2nix] 1.11.1 ### [`opa`](./opa/) @@ -244,6 +245,7 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T [nixpkgs]: https://github.com/NixOS/nixpkgs [nix-direnv]: https://github.com/nix-community/nix-direnv [node]: https://nodejs.org +[node2nix]: https://github.com/svanderburg/node2nix [nomad]: https://nomadproject.io [nomad-autoscaler]: TOhttps://github.com/hashicorp/nomad-autoscaler [nomad-pack]: https://github.com/hashicorp/nomad-pack @@ -266,4 +268,3 @@ All of the templates have only the root [flake](./flake.nix) as a flake input. T [vulnix]: https://github.com/flyingcircusio/vulnix [yarn]: https://yarnpkg.com [zig]: https://ziglang.org - diff --git a/node/flake.nix b/node/flake.nix index 189f7a5..7fa8611 100644 --- a/node/flake.nix +++ b/node/flake.nix @@ -9,7 +9,7 @@ let pkgs = import nixpkgs { inherit system; }; - inherit (pkgs) mkShell; + inherit (pkgs) mkShell node2nix; nodejs = pkgs.nodejs-18_x; pnpm = pkgs.nodePackages.pnpm; @@ -17,7 +17,7 @@ in { devShells = { default = mkShell { - buildInputs = [ nodejs pnpm yarn ]; + buildInputs = [ node2nix nodejs pnpm yarn ]; shellHook = '' echo "node `${nodejs}/bin/node --version`"