An easy-to-host PDS on the ATProtocol, MacOS. Grandma-approved.

feat: add devenv up support for local relay development

Adds processes.relay to devenv.nix so `devenv up` launches the relay via
cargo run, with EZPDS_* env vars providing dev defaults for data_dir and
public_url. relay.dev.toml holds committed non-secret defaults; state lands
in .devenv/state/relay (already gitignored). Override per-machine in
devenv.local.nix.

+23 -1
+11 -1
devenv.nix
··· 1 - { pkgs, ... }: 1 + { pkgs, config, ... }: 2 2 { 3 3 languages.rust = { 4 4 enable = true; ··· 13 13 ]; 14 14 15 15 env.LIBSQLITE3_SYS_USE_PKG_CONFIG = "1"; 16 + 17 + # Relay dev configuration — override any of these in devenv.local.nix. 18 + env.EZPDS_CONFIG = "${config.devenv.root}/relay.dev.toml"; 19 + env.EZPDS_DATA_DIR = "${config.devenv.root}/.devenv/state/relay"; 20 + env.EZPDS_PUBLIC_URL = "http://localhost:8080"; 21 + env.RUST_LOG = "info"; 22 + 23 + processes.relay = { 24 + exec = "cargo run --package relay"; 25 + }; 16 26 }
+12
relay.dev.toml
··· 1 + # Local development configuration for `devenv up` 2 + # 3 + # Required fields (data_dir, public_url) are injected via EZPDS_* environment 4 + # variables set in devenv.nix. Override them per-machine in devenv.local.nix: 5 + # 6 + # { ... }: { 7 + # env.EZPDS_PUBLIC_URL = "https://my-tunnel.ngrok.io"; 8 + # } 9 + 10 + # TODO: fill in your preferred bind address and port for local development 11 + bind_address = "127.0.0.1" 12 + port = 8080