make-disk-image: make memSize configurable per disk

Sometimes the VM builder can run out of memory and fail to allocate memory when installing the system toplevel
This commit is contained in:
matthewcroughan authored and mergify[bot] committed 2023-12-13 15:02:45 +00:00
1 parent 169e99dc3d
commit bd8fbc3f27
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -10,6 +10,13 @@ let
in
{
options.disko = {
memSize = lib.mkOption {
type = lib.types.int;
description = ''
size of the memory passed to runInLinuxVM, in megabytes
'';
default = 1024;
};
devices = lib.mkOption {
type = diskoLib.toplevel;
default = { };