.envrc

 1# this is required for versions of direnv older than 2.29.0, since they do not
 2# support `use flake`, and is recommended in all cases, since it caches the
 3# environment and prevents dependencies from being garbage-collected by nix.
 4if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
 5  source_url \
 6    "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" \
 7    "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
 8fi
 9
10# allow extending this .envrc with a user-defined .envrc.local
11source_env_if_exists .envrc.local
12
13# load the development shell defined in the flake.nix file
14# note: this automatically watches the following files:
15#   - flake.nix
16#   - flake.lock
17use flake
18
19# files to watch
20watch_file .envrc.local
21watch_file flake-hook.bash