Skip to content

Commit

Permalink
Merge pull request #131312 from Lassulus/vbox-size
Browse files Browse the repository at this point in the history
vbox-image: add new option to set free space in image
  • Loading branch information
Mic92 authored Aug 1, 2021
2 parents 53175c2 + a6700d7 commit 9254bf3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nixos/modules/virtualisation/virtualbox-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -129,6 +136,7 @@ in {
inherit pkgs lib config;
partitionTableType = "legacy";
diskSize = cfg.baseImageSize;
additionalSpace = cfg.baseImageFreeSpace;

postVM =
''
Expand Down

0 comments on commit 9254bf3

Please sign in to comment.