Examples
Copy/paste fragments for user-owned setup scripts. They are not DVM runtime code. Review and adapt before use.
All examples assume the Fedora guest with dnf5. They run during dvm sync, as
the Lima login user with sudo available. DVM prepends set -Eeuo pipefail and
exports these variables (see the config reference):
DVM_NAME DVM_VM DVM_LIMA_NAME DVM_USER DVM_CODE_DIR DVM_PORTS
DVM_SUBUID_COUNT DVM_SUBGID_COUNT
Run a command as the dev user, not root: sudo -u "$DVM_USER" -H ....
Snippets
Section titled “Snippets”| Topic | What it covers |
|---|---|
| Packages | Fedora and Copr packages |
| Verified binary download | Verified upstream binary download |
| Default shell | Set zsh as the default shell |
| SSH keys | VM-local SSH keys, private repos |
| GPG signing key | VM-local GPG signing key |
| Dotfiles | chezmoi dotfiles |
| AI CLIs | Claude Code and Codex CLIs |
| Rootless Docker | Rootless Docker (recommended) |
| Rootless Podman | Rootless Podman |
| Rootful Docker | Rootful Docker (guest-root risk) |
| Tailscale | Tailscale |
| Cloudflare Tunnel | Cloudflare Tunnel |
| One user per project | One VM, one user per project |
Built and maintained by eshlox.