hacking.md: more details about TANGLED_VM_SPINDLE_OWNER #461

merged
opened by ilyagr.bsky.social targeting master from ilyagr.bsky.social/core: hacking

I think it'd be nice to make setting TANGLED_VM_SPINDLE_OWNER optional and run VMs without a spindle in that case, but let's just document the status quo for now.

Changed files
+8 -1
docs
+8 -1
docs/hacking.md
···
ideally in a `.envrc` with [direnv](https://direnv.net) so you
don't lose it.
+
You will also need to set the `$TANGLED_VM_SPINDLE_OWNER`
+
variable to some value. If you don't want to [set up a
+
spindle](#running-a-spindle), you can use any placeholder
+
value.
+
You can now start a lightweight NixOS VM using
`nixos-shell` like so:
···
## running a spindle
-
Be sure to set `$TANGLED_VM_SPINDLE_OWNER` to your own DID.
+
You will need to find out your DID by entering your login handle into
+
<https://pdsls.dev/>. Set `$TANGLED_VM_SPINDLE_OWNER` to your DID.
+
The above VM should already be running a spindle on `localhost:6555`.
You can head to the spindle dashboard on `http://localhost:3000/spindles`,
and register a spindle with hostname `localhost:6555`. It should instantly