Getting Started
Installation
1. Install Nix
2. Install Cachix
Recommended, speeds up the installation by providing binaries.
3. Install devenv
See Using flakes
Updating
Follow the instructions for an installation above.
Initial set up
Given a Git repository, create the initial structure:
$ devenv init
Creating .envrc
Creating devenv.nix
Creating devenv.yaml
Appending .devenv* to .gitignore
Done.
Commands
devenv ci
builds your developer environment and makes sure that all checks pass. Useful to run in your continuous integration environment.devenv shell
activates your developer environment.devenv search NAME
searches packages matching NAME in Nixpkgs input.devenv update
updates and pins inputs fromdevenv.yaml
intodevenv.lock
.devenv gc
deletes unused environments to save disk space.devenv up
starts processes.
Learn more
- About
.envrc
in Automatic shell activation. - About
devenv.yaml
in Inputs and Composing using imports. - About
devenv.nix
in the Writing devenv.nix section, starting with the basics.