Merge pull request #234455 from NixOS/qemu/memory-size-32bits

nixos/qemu-vm: fix 32-bits assert for memorySize
This commit is contained in:
K900 2023-05-27 18:40:08 +03:00 committed by GitHub
commit 0109faee63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -894,7 +894,7 @@ in
'';
}
])) ++ [
{ assertion = pkgs.stdenv.hostPlatform.is32bit && cfg.memorySize < 2047;
{ 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.
'';