I have installed Windows 11 VM but it was done on Virt Machine Manager. My current libvirtd config is like this:
virtualisation.libvirtd = {
enable = true;
qemu = {
runAsRoot = false;
ovmf = {
enable = true;
package = pkgs.OVMFFull;
};
swtpm.enable = true;
};
};
.
Also, I have looked at quickemu code. It seems like it searches for OVMF on directories which are not provided by NixOS. Try exporting those variables before running quickemu:
export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd
.