Skip to content

Commit

Permalink
use node-pnpm and follows nixpkgs in readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
mibmo committed Jul 29, 2024
1 parent ab3bfa4 commit 97cfbda
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
});
}
Expand Down

0 comments on commit 97cfbda

Please sign in to comment.