treewide: specify that mebibytes are used when it's ambiguous (#424169)

This commit is contained in:
Philip Taron
2025-07-11 12:29:33 -07:00
committed by GitHub
16 changed files with 32 additions and 33 deletions

View File

@@ -405,7 +405,7 @@ in
type = types.ints.positive;
default = 1024;
description = ''
The memory size in megabytes of the virtual machine.
The memory size of the virtual machine in MiB (1024×1024 bytes).
'';
};
@@ -480,7 +480,7 @@ in
default = [ ];
description = ''
Additional disk images to provide to the VM. The value is
a list of size in megabytes of each disk. These disks are
a list of size in MiB (1024×1024 bytes) of each disk. These disks are
writeable by the VM.
'';
};
@@ -1129,7 +1129,7 @@ in
{
assertion = pkgs.stdenv.hostPlatform.is32bit -> cfg.memorySize < 2047;
message = ''
virtualisation.memorySize is above 2047, but qemu is only able to allocate 2047MB RAM on 32bit max.
virtualisation.memorySize is above 2047, but qemu is only able to allocate 2047 MiB RAM on 32bit max.
'';
}
{