microvm-nix
microvm.nix
Read the repository instructions, flake inputs, target host, VM
nixosConfigurations, imports, and existing microVM modules before editing.
Preserve the project's module and feature-flag conventions.
Use declaring VMs and the introduction for the module shape. Use declarative deployment, host integration, and host systemd for host-managed VMs. Consult options, the networking references, and shares only for the relevant workload.
Distinguish a VM's NixOS configuration from the host's microvm.vms
management. Treat host paths, shared stores, networking, interfaces, and device
passthrough as trust boundaries. Existing deployed VMs may require the
documented microvm update flow instead of an automatic host rebuild update.
Validate the flake and dry-build the affected host or VM before starting or updating runtime services.