From 09d102278285e4a8917cb94de4d578243b57f2d3 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 27 May 2023 17:20:08 +0200 Subject: [PATCH] nixos/qemu-vm: fix 32-bits assert for memorySize It should be an implication, rather than &&. --- nixos/modules/virtualisation/qemu-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index da1fea808233..388ba8168456 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -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. '';