mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 15:08:24 +00:00
Proactive NIP-65 discovery needs a small, operator-visible set of user index relays rather than embedding deployment policy in sync behavior. The default uses the three public index relays selected for the minimal GRASP-03 design. Add NGIT_USER_INDEX_RELAYS and --user-index-relays as a comma-separated Config value with the repository's established trimmed-list parser convention. Mirror it as the userIndexRelays NixOS string list, joined into the environment, and document the same defaults in the reference and example environment file. Correctness assumes relay URL validation and connection policy remain the responsibility of the sync consumer, as with existing relay configuration. This commit deliberately adds no discovery scheduling, connections, persistence, or sync behavior. Validation: nix develop -c cargo test --lib user_index_relay -- --nocapture (2 passed); git diff --check.