3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #131312 from Lassulus/vbox-size

vbox-image: add new option to set free space in image
This commit is contained in:
Jörg Thalheim 2021-08-01 10:07:35 +01:00 committed by GitHub
commit 9254bf3607
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,13 @@ in {
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 {
type = types.int;
default = 1536;
@ -129,6 +136,7 @@ in {
inherit pkgs lib config;
partitionTableType = "legacy";
diskSize = cfg.baseImageSize;
additionalSpace = cfg.baseImageFreeSpace;
postVM =
''