Unverified Commit 537c6ede authored by Ryan Lahfa's avatar Ryan Lahfa Committed by GitHub
Browse files

Merge pull request #234266 from emilylange/qemu-vm-2047mb

nixos/qemu-vm: add `virtualisation.memorySize < 2048` assertion on 32bit
parents 88555d51 5dbd4f32
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -893,7 +893,13 @@ in
                  The address must be in the default VLAN (10.0.2.0/24).
              '';
          }
        ]));
        ])) ++ [
          { 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.
            '';
          }
        ];

    warnings =
      optional (