Getting Started
Here are the minimum steps to get started.
Installation
a) Install Nix
b) Install Cachix (recommended, speeds up the installation by providing binaries)
c) Install devenv
Note
To update devenv, rerun the installation commands below.
If you get errors that devenv already exists, run nix profile list and nix profile remove <number> beforehand.
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 cibuilds your developer environment and makes sure that all checks pass. Useful to run in your continuous integration environment.devenv shellactivates your developer environment.devenv search NAMEsearches packages matching NAME in Nixpkgs input.devenv updateupdates and pins inputs fromdevenv.yamlintodevenv.lock.devenv gcdeletes unused environments to save disk space.devenv upstarts processes.
Learn more
- About
.envrcin Automatic shell activation. - About
devenv.yamlin Inputs and Composing using imports. - About
devenv.nixin the Writing devenv.nix section, starting with the basics.