summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-08-01 10:07:35 +0100
committerGitHub <noreply@github.com>2021-08-01 10:07:35 +0100
commit9254bf3607b939f85c2c105d59b67e5878c0b250 (patch)
treeab29a0d95ab2a355f73e79f309b325fc22950df3 /nixos/modules
parent53175c2f9f90b9aa217531e4cd00a301c2339b3a (diff)
parenta6700d75f38cda83367a8af84651a2a72ce0f3ef (diff)
downloadnixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.tar
nixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.tar.gz
nixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.tar.bz2
nixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.tar.lz
nixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.tar.xz
nixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.tar.zst
nixpkgs-9254bf3607b939f85c2c105d59b67e5878c0b250.zip
Merge pull request #131312 from Lassulus/vbox-size
vbox-image: add new option to set free space in image
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/virtualisation/virtualbox-image.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/virtualbox-image.nix b/nixos/modules/virtualisation/virtualbox-image.nix
index 272c696807a..853dd642a76 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;
@@ -129,6 +136,7 @@ in {
       inherit pkgs lib config;
       partitionTableType = "legacy";
       diskSize = cfg.baseImageSize;
+      additionalSpace = cfg.baseImageFreeSpace;
 
       postVM =
         ''