diff options
| author | lassulus <lassulus@lassul.us> | 2021-07-24 09:33:10 +0200 |
|---|---|---|
| committer | Silvan Mosberger <contact@infinisil.com> | 2021-08-03 02:45:28 +0200 |
| commit | a2a5df1e632a247f44f64c7acf79e41a6327e270 (patch) | |
| tree | b89fdac85329522c73e8a76b78164932ec84039a | |
| parent | Merge pull request #132463 from NixOS/backport-131583-to-release-21.05 (diff) | |
| download | nixpkgs-a2a5df1e632a247f44f64c7acf79e41a6327e270.tar.gz | |
vbox-image: add new option to set free space in image
(cherry picked from commit a6700d75f38cda83367a8af84651a2a72ce0f3ef)
| -rw-r--r-- | nixos/modules/virtualisation/virtualbox-image.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/virtualbox-image.nix b/nixos/modules/virtualisation/virtualbox-image.nix index 071edda82693..d31921f95ea6 100644 --- a/nixos/modules/virtualisation/virtualbox-image.nix +++ b/nixos/modules/virtualisation/virtualbox-image.nix @@ -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; @@ -117,6 +124,7 @@ in { inherit pkgs lib config; partitionTableType = "legacy"; diskSize = cfg.baseImageSize; + additionalSpace = cfg.baseImageFreeSpace; postVM = '' |
