An open API service indexing awesome lists of open source software.

https://github.com/datsfilipe/nix-envs

Nix powered development environment templates.
https://github.com/datsfilipe/nix-envs

bash development direnv nix nix-shell

Last synced: about 2 months ago
JSON representation

Nix powered development environment templates.

Awesome Lists containing this project

README

          

# nix-envs

A CLI tool for managing dynamic, stackable Nix development environments. It generates flakes in your local cache (`~/.cache/envs`) and links them via `direnv` to keep your project directories clean.

## Installation

**Using Nix:**
```bash
nix profile install github:datsfilipe/nix-envs
```

## Manual Build:

```bash
git clone [https://github.com/datsfilipe/nix-envs.git](https://github.com/datsfilipe/nix-envs.git) && cd nix-envs
go build -o nix-envs main.go && sudo mv nix-envs /usr/local/bin/ # or ~/.local/bin/ if you prefer
```

## Usage

```bash
# create specific environments (Node fetches exact binaries from nodejs.org)
nix-envs create nodejs 20.11.0
nix-envs create go 1.22
nix-envs create rust 1.75.0

# manage environments
nix-envs edit nodejs # open flake in $EDITOR
nix-envs delete nodejs # remove env and clean .envrc
```

Supported Templates: `nodejs`, `go`, `rust`, `python`, `bun`, `lua`, `nix`, `elixir`.

## License

[MIT](./LICENSE)