Build a bare bones bootable nixos qcow2 image suitable for running with libvirt/qemu/kvm.
nix-build '<nixpkgs/nixos>' -A config.system.build.qcow2 --arg configuration "{ imports = [ ./build-qcow2.nix ]; }"
Should create a results directory that symlinks to a qcow2 image in the store.
I basically copied this from the openstack image in nixpkgs because I don't know a better way.