Monorepo for Tangled

nix/vm: persist AT Protocol state via 9p and create default label definitions #8

open opened by nolith.dev targeting master from local-dev

Add 9p shared directory for AT Protocol state (PLC/PDS/Jetstream data and owner DID) so that identities survive VM reboots even when the qcow2 disk is deleted.

Key changes:

  • Bootstrap script handles existing accounts (login fallback when createAccount fails with persisted PDS data)
  • Creates default label definitions (wontfix, good-first-issue, duplicate, documentation, assignee) via com.atproto.repo.putRecord
  • PostgreSQL (PLC) backed up via pg_dump on shutdown, restored via psql on boot only when the database is empty (qcow2 was deleted)
  • PDS_HOSTNAME set to "localhost" (not "localhost:port") to avoid https:// URL generation that breaks OAuth loopback validation
  • PDS/Jetstream data synced via mkDataSyncScripts
  • Owner DID written to both VM disk and 9p mount for host-side access
  • Use dev@example.com and tangled-dev.test handle for bootstrap account

Signed-off-by: Alessio Caiazza code.git@caiazza.info

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:nzep3slobztdph3kxswzbing/sh.tangled.repo.pull/3mgmn4naukj22
Interdiff #0 #1
nix/vm.nix

This file has not been changed.

History

2 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
nix/vm: persist AT Protocol state via 9p and create default label definitions
no conflicts, ready to merge
expand 0 comments
1 commit
expand
nix/vm: persist AT Protocol state via 9p and create default label definitions
expand 0 comments