summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-05-27 17:20:08 +0200
committerAlyssa Ross <hi@alyssa.is>2023-05-28 18:08:48 +0000
commit76eaaa955abdfb25d9ac7222c7c60b6e6f9fbbcf (patch)
tree0342ee80f584bb13c1d4ab5dee25208d97fd49b1 /nixos
parent8a12d9d2b1d2f88a844f7b9a70bc18513868c1ad (diff)
nixos/qemu-vm: fix 32-bits assert for memorySize
It should be an implication, rather than &&.

(cherry picked from commit 09d102278285e4a8917cb94de4d578243b57f2d3)
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/qemu-vm.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix
index 5dfc77cb428aa..de66ee529c3f2 100644
--- a/nixos/modules/virtualisation/qemu-vm.nix
+++ b/nixos/modules/virtualisation/qemu-vm.nix
@@ -864,7 +864,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.
             '';