From fd74bb389217960a36fd7644fcc72f2e080a7cd5 Mon Sep 17 00:00:00 2001 From: Ilya Grigoriev Date: Mon, 11 Aug 2025 15:45:05 -0700 Subject: [PATCH] hacking.md: more details about TANGLED_VM_SPINDLE_OWNER Change-Id: soqxovmpmztvnssmzulssrzvvrwsxpyl 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. Signed-off-by: Ilya Grigoriev --- docs/hacking.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/hacking.md b/docs/hacking.md index 03d65db..62940aa 100644 --- a/docs/hacking.md +++ b/docs/hacking.md @@ -61,6 +61,11 @@ generate a knot secret. Set `$TANGLED_VM_KNOT_SECRET` to it, 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: @@ -92,7 +97,9 @@ git push local-dev main ## 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 +. 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 -- 2.43.0