Developer VM

May 11, 2026 ยท View on GitHub

This command runs a VM in your terminal and mounts your PWD to /tmp/shared inside the VM.

This should be run from the root directory of this project in order to work correctly.

nix run .#devvm-aarch64-linux 

You may have to cross-compile using a remote machine. In that case, you can put builders in like so (see Nix docs for more info):

nix run --builders 'ssh://astrid@your-host.example aarch64-linux' .#devvm-aarch64-linux 

Note that you may or may not have to sudo cargo commands inside the VM.

USB Hotplug

There is a helper script for adding and removing USBs from the VM.

nix run .#devvm-usbhotplug -- add foo 10M
nix run .#devvm-usbhotplug -- rm foo