[1] https://wiki.qemu.org/Documentation/9psetup
[2] https://github.com/lima-vm/lima/blob/3401b97e602083cfc55b34e...
NixOS configurations can be built and run as a qemu VM.
I very recently was using one and found they automatically make a 9p mount to /tmp.