# Bootstrap nix-direnv if not installed system-wide. Pinned for reproducibility.
# nix-direnv caches the evaluated devshell so we only re-evaluate when an input
# changes — much faster than the direnv-builtin `use flake`.
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
