nixos/google-compute-image: add buildMemSize option (#452390)
This commit is contained in:
@@ -57,6 +57,12 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.googleComputeImage.buildMemSize = mkOption {
|
||||||
|
type = types.int;
|
||||||
|
default = 1024;
|
||||||
|
description = "Memory size (in MiB) for the temporary VM used to build the image.";
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.googleComputeImage.contents = mkOption {
|
virtualisation.googleComputeImage.contents = mkOption {
|
||||||
type = with types; listOf attrs;
|
type = with types; listOf attrs;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
@@ -129,6 +135,7 @@ in
|
|||||||
inherit (cfg) contents;
|
inherit (cfg) contents;
|
||||||
partitionTableType = if cfg.efi then "efi" else "legacy";
|
partitionTableType = if cfg.efi then "efi" else "legacy";
|
||||||
inherit (config.virtualisation) diskSize;
|
inherit (config.virtualisation) diskSize;
|
||||||
|
memSize = cfg.buildMemSize;
|
||||||
inherit config lib pkgs;
|
inherit config lib pkgs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user