# Auto-load the dev shell when you cd into this directory.
# Run `direnv allow` once to enable it.
#
# Prefers the flake dev shell (`nix develop`); falls back to shell.nix for
# setups without flakes enabled. With nix-direnv configured in your
# ~/.config/direnv/direnvrc, either path is transparently cached for fast
# re-entry.
if has nix && nix flake metadata >/dev/null 2>&1; then
  use flake
  watch_file flake.nix flake.lock
else
  use nix
  watch_file shell.nix
fi
