Merge pull request #132482 from Infinisil/vbox-size-backport
[backport] vbox-image: add new option to set free space in image
This commit is contained in:
commit
6f2e900e10
@ -18,6 +18,13 @@ in {
|
|||||||
The size of the VirtualBox base image in MiB.
|
The size of the VirtualBox base image in MiB.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
baseImageFreeSpace = mkOption {
|
||||||
|
type = with types; int;
|
||||||
|
default = 30 * 1024;
|
||||||
|
description = ''
|
||||||
|
Free space in the VirtualBox base image in MiB.
|
||||||
|
'';
|
||||||
|
};
|
||||||
memorySize = mkOption {
|
memorySize = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 1536;
|
default = 1536;
|
||||||
@ -117,6 +124,7 @@ in {
|
|||||||
inherit pkgs lib config;
|
inherit pkgs lib config;
|
||||||
partitionTableType = "legacy";
|
partitionTableType = "legacy";
|
||||||
diskSize = cfg.baseImageSize;
|
diskSize = cfg.baseImageSize;
|
||||||
|
additionalSpace = "${toString cfg.baseImageFreeSpace}M";
|
||||||
|
|
||||||
postVM =
|
postVM =
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user