# Bootstrap nix-direnv: caches the flake's devShell into .direnv/ so shell
# entry is near-instant after the first build. Re-evaluation only happens
# when flake.nix / flake.lock (or any watch_file target) actually changes.
if ! has nix_direnv_version || ! nix_direnv_version 3.1.1; then
  source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.1/direnvrc" "sha256-p+fzQdrms/hDa7g+soShAybJNo4bN4SIAeSfqNKgD5I="
fi

use flake

# Pick up uncommitted machine-local overrides (e.g. DIRENV_LOG_FORMAT="").
dotenv_if_exists .envrc.local
