The image needs to be available to the guest with a partition table and a partition with a label named "nixos" so the stage1 can mount it. By enabling the virtualisation.diskImage option we now have a persistent root filesystem, including /home.
NixOS on RISC-V
To boot the system in QEMU, first enter the development shell:
$ nix develop
Then run the boot script:
$ ./boot.sh
Description
Languages
Nix
41.5%
Shell
21.3%
C
15.5%
Perl
9.9%
Makefile
8.2%
Other
3.6%