make-single-disk-zfs-image: make memSize configurable

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>

Changed files
+4 -1
nixos
+4 -1
nixos/lib/make-single-disk-zfs-image.nix
···
, # size of the FAT partition, in megabytes.
bootSize ? 1024
, # The size of the root partition, in megabytes.
rootSize ? 2048
···
).runInLinuxVM (
pkgs.runCommand name
{
-
memSize = 1024;
QEMU_OPTS = "-drive file=$rootDiskImage,if=virtio,cache=unsafe,werror=report";
preVM = ''
PATH=$PATH:${pkgs.qemu_kvm}/bin
···
, # size of the FAT partition, in megabytes.
bootSize ? 1024
+
, # memory allocated for virtualized build instance
+
memSize ? 1024
+
, # The size of the root partition, in megabytes.
rootSize ? 2048
···
).runInLinuxVM (
pkgs.runCommand name
{
+
inherit memSize;
QEMU_OPTS = "-drive file=$rootDiskImage,if=virtio,cache=unsafe,werror=report";
preVM = ''
PATH=$PATH:${pkgs.qemu_kvm}/bin