Skip to content

Commit

Permalink
nixos/qemu-vm: fix 32-bits assert for memorySize
Browse files Browse the repository at this point in the history
It should be an implication, rather than &&.
  • Loading branch information
RaitoBezarius committed May 27, 2023
1 parent 3580ac6 commit 09d1022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/qemu-vm.nix
Expand Up @@ -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.
'';
Expand Down

0 comments on commit 09d1022

Please sign in to comment.