Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

  1. Install Nix using the official installer.

  2. Enable Flakes in ~/.config/nix/nix.conf:

    experimental-features = nix-command flakes
    
  3. 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.