Monorepo for Tangled โ€” https://tangled.org

nix/vm: store service data in a shared folder on the host #466

merged
opened by winter.bsky.social targeting master from winter.bsky.social/core: push-tkullpkzpmst

This also switches away from nixos-shell in the process as by this point it wasn't really adding much to our setup except inflexibility.

Signed-off-by: Winter winter@winter.cafe

0
by winter.bsky.social 2 comments
expand 1 commit
nix/vm: store service data in a shared folder on the host

You could allow the user to set $TANGLED_VM_DATA_DIR themself, just in case they want to run the vm from another dir.

Also (or perhaps instead), you could specify in the error message that this command must be run from the repo.

Hm, I'll think about the options here. Thanks!

sign up or login to add to the discussion
expand 2 commits
nix/modules/knot: don't use an activation script to set up git user home
nix/vm: store service data in a shared folder on the host

Apparently I didn't realize that the knot data was never actually being persisted? I have no clue how that happened -- anyways, fixed now.

how do you mean? the full VM state is stored in nixos.qcow2 by default no?

I meant with this diff applied, I broke the persisting of it to the nix/vm-data directory.

    if var == ""
    then throw "\$${name} must be defined, see docs/hacking.md for more details"
    else var;

can we also bail if lib.inPureEvalMode (or whatever it was called?)

can we update the air-watcher to exclude nix/vm-data directory?

i think port forwards are not setup by default, is there a way to get this behavior back?

can we also bail if lib.inPureEvalMode (or whatever it was called?)

When both local plc/pds/jetstream and knot service auth land, --impure and those env vars won't be required at all -- are you okay with leaving it like this for now in the interim?

are you okay with leaving it like this for now in the interim?

sure!

sign up or login to add to the discussion
expand 3 commits
nix/modules/knot: don't use an activation script to set up git user home
nix/vm: store service data in a shared folder on the host
.air/appview: exclude nix/
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 3
AT URI
at://did:plc:pdrr2fgsfkvfbznqucjmyeee/sh.tangled.repo.pull/3lw673b7xj322