about summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-05-27 17:20:08 +0200
committerRaito Bezarius <masterancpp@gmail.com>2023-05-27 17:20:08 +0200
commit09d102278285e4a8917cb94de4d578243b57f2d3 (patch)
tree24c91d3d89f196ae91648bca872d5cf13847edcf /nixos/modules/virtualisation
parent3580ac6c65ec97ebccb02c166af8d19045d4d291 (diff)
downloadnixlib-09d102278285e4a8917cb94de4d578243b57f2d3.tar
nixlib-09d102278285e4a8917cb94de4d578243b57f2d3.tar.gz
nixlib-09d102278285e4a8917cb94de4d578243b57f2d3.tar.bz2
nixlib-09d102278285e4a8917cb94de4d578243b57f2d3.tar.lz
nixlib-09d102278285e4a8917cb94de4d578243b57f2d3.tar.xz
nixlib-09d102278285e4a8917cb94de4d578243b57f2d3.tar.zst
nixlib-09d102278285e4a8917cb94de4d578243b57f2d3.zip
nixos/qemu-vm: fix 32-bits assert for memorySize
It should be an implication, rather than &&.
Diffstat (limited to 'nixos/modules/virtualisation')
-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 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.
             '';