Better screen resolution in virtual machine

Usually I build a virtual machine to test NixOS with the command nixos-rebuild build-vm, and run it with result/bin/run-nixos-vm. How can I get a better screen resolution than the default 1024x768 in the virtual machine?

1 Like