with imports = [ <nixpkgs/nixos/modules/virtualisation/qemu-vm.nix> ];
the result is
Found Windows Boot Manager on /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
installing the GRUB 2 boot loader on /dev/vda...
Installing for i386-pc platform.
/nix/store/imdz3ipf50dh2wc7brbmdq0sk55x85g2-grub-2.06/sbin/grub-install: error: cannot find a GRUB drive for /dev/vda. Check your device.map.
/nix/store/90wrqp2iaspwq9qrmmyad0jmhln8m9p9-install-grub.pl: installation of GRUB on /dev/vda failed: Inappropriate ioctl for device
warning: error(s) occurred while switching to the new configuration
You do not want to import qemu-vm.nix in your actual configuration; it does a lot of things to reconfigure the system for running in a VM. If you want to add settings for the build-vm command without changing your actual configuration, see the comment above and use virtualisation.vmVariant.