Comment
Comment by qeden
I made Virby, a Nix-darwin module for configuring a fast and secure vfkit-based VM for building linux packages on macOS. The main advantages it has over the standard `linux-builder` darwin module are:
The nix-darwin module provides options to configure the VM/service, including:
- memory
- cpu cores
- host port
- disk size
- rosetta support: enable rosetta in the VM, allowing x86_64-linux builds
- on-demand mode: launchd listens on the host port for incoming SSH connections, and when one is received, the vm-runner application boots the VM and proxies the SSH connection. After a configurable period of idle time, the VM shuts down.
- debug logging: enable debug logging for the daemon and VM processes.