# Install VirtIO guest tools (QEMU agent + SPICE vdagent) { drivers, ... }: { name = "virtio"; cdroms = [ drivers.virtio-iso ]; auditScript = '' @echo off :: VirtIO ISO is the first (and only) CD — drive letter D: if exist D:\cert\virtio_win_cert.cer ( certutil -addstore TrustedPublisher D:\cert\virtio_win_cert.cer ) if exist D:\virtio-win-guest-tools.exe ( D:\virtio-win-guest-tools.exe /install /passive /norestart ) else if exist D:\guest-agent\qemu-ga-x86_64.msi ( msiexec /i D:\guest-agent\qemu-ga-x86_64.msi /qn /norestart ) ''; }