nixos/lib/make-multi-disk-zfs-image: expose memSize parameter

closes #178095
This commit is contained in:
Nick Bathum 2023-02-26 20:17:27 -05:00
parent 59462da917
commit 519958c94b
No known key found for this signature in database
GPG key ID: 6F47A049DC3446FB

View file

@ -73,6 +73,9 @@
, # Shell code executed after the VM has finished. , # Shell code executed after the VM has finished.
postVM ? "" postVM ? ""
, # Guest memory size
memSize ? 1024
, name ? "nixos-disk-image" , name ? "nixos-disk-image"
, # Disk image format, one of qcow2, qcow2-compressed, vdi, vpc, raw. , # Disk image format, one of qcow2, qcow2-compressed, vdi, vpc, raw.
@ -242,6 +245,7 @@ let
{ {
QEMU_OPTS = "-drive file=$bootDiskImage,if=virtio,cache=unsafe,werror=report" QEMU_OPTS = "-drive file=$bootDiskImage,if=virtio,cache=unsafe,werror=report"
+ " -drive file=$rootDiskImage,if=virtio,cache=unsafe,werror=report"; + " -drive file=$rootDiskImage,if=virtio,cache=unsafe,werror=report";
inherit memSize;
preVM = '' preVM = ''
PATH=$PATH:${pkgs.qemu_kvm}/bin PATH=$PATH:${pkgs.qemu_kvm}/bin
mkdir $out mkdir $out