Development shell
The development shell makes it easy to get all of the tools and credentials.
Prerequisites
NixOS
Add the following to your NixOS configuration:
{
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
programs.direnv = {
enable = true;
silent = true;
};
}
Other distros
-
Install Nix using the official installer.
-
Enable Flakes in
~/.config/nix/nix.conf:experimental-features = nix-command flakes -
Install direnv and enable its shell hook.
Load the environment
From the repo root:
direnv allow .
direnv allow infra/production
direnv allow infra/staging
From now on, cd to the project automatically loads the required tools and credentials.