vbox-image: add new option to set free space in image
(cherry picked from commit a6700d75f38cda83367a8af84651a2a72ce0f3ef)
This commit is contained in:
		
							parent
							
								
									b812e1f413
								
							
						
					
					
						commit
						a2a5df1e63
					
				@ -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 =
 | 
			
		||||
        ''
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user