Something went wrong. Try again.
A personal collection of dotfiles and scripts for syncing settings across machines.
Something went wrong. Try again.
dotfiles sandbox
5 files
README.md
sandbox/ #
Ephemeral Linux sandbox setup provisioned via Namespace (nsc) recipes in just/sandbox.just.
Files #
provision.sh— idempotent bootstrap piped tobash -son the instance. Installszsh,git,curl,mise,just,bun,pi, andfx, clones the dotfiles repo, runsjust link-server, setszshas the login shell, and applies the rc files below.profile— installed to/etc/profile.d/zz-dotfiles.shso login shells inheritmiseshims and~/.bun/binonPATH.zshrcandbashrc— symlinked to~/.zshrcand~/.bashrcinside the sandbox.
Workflow #
just nsc-start mybox # spawn and provision in one step
just nsc-shell mybox # open an interactive SSH shell (forwards SSH agent)
just nsc-down mybox # destroy the instance and remove its cached ID
Run just nsc-provision mybox to pull the latest dotfiles and re-apply rc files on a running sandbox. nsc ssh requires the instance UUID rather than --unique_tag, so nsc-up records the UUID in ~/.cache/nsc/<name>.id and all nsc-* recipes read from there.
Override defaults via environment variables:
- OPTIONAL
DOTFILES_REPO— clone source, defaults tohttps://tangled.org/frytg.digital/dotfiles. - OPTIONAL
SANDBOX_MACHINE— Namespace machine spec, defaults tolinux/amd64:2x8. - OPTIONAL
SANDBOX_DURATION— instance TTL before auto-destruction, defaults to60m.
Related #
bin/link-server.sh— Linux/server-only symlinks (justfile,skills,.pi) run byjust link-server. Do not runbin/link.shin sandboxes; it targets macOS paths andln -sfh.- Host-side sandbox helper aliases belong in the host
.zshrc, not insidesandbox/.