Getting Started
Installation
1. Install Nix
Note
We recommended that you use the experimental installer on macOS to avoid issues with Apple Silicon chips:
2. Install devenv
Updating
To update, refer to the specific upgrade instructions provided in the documentation for the installer you used from the options above.
Initial set up
Given a Git repository, create the initial structure:
Commands
devenv testbuilds 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 <NAME>searches 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.