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.
- Host: GitHub
- URL: https://github.com/datsfilipe/nix-envs
- Owner: datsfilipe
- License: mit
- Created: 2025-02-16T13:58:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-20T13:57:59.000Z (about 1 year ago)
- Last Synced: 2025-05-11T11:59:49.391Z (about 1 year ago)
- Topics: bash, development, direnv, nix, nix-shell
- Language: Nix
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)