From 97cfbdae4cddbcb16409c61024164cbed7e46a0d Mon Sep 17 00:00:00 2001 From: mib Date: Mon, 29 Jul 2024 12:21:21 +0200 Subject: [PATCH] use node-pnpm and follows nixpkgs in readme example --- readme.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index d06be63..6a36346 100644 --- a/readme.md +++ b/readme.md @@ -7,17 +7,23 @@ Leveraging the power of Nix modules for powerful environment-specific shells to suit your project. ## Usage -Setting up a generic environment for working with Rust is as simple as -running `nix flake init --template github:mibmo/conch#rust` or +Setting up a generic environment for working with Node is as simple as +running `nix flake init --template github:mibmo/conch#node-pnpm` or placing a `flake.nix` at the root of your project directory. ```nix { - inputs.conch.url = "github:mibmo/conch"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + conch = { + url = "github:mibmo/conch"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; outputs = { conch, ... }: conch.load [ "x86_64-linux" ] ({ ... }: { - development.rust = { + development.node = { enable = true; - profile = "complete"; + pnpm.enable = true; }; }); }