nixos/virtualbox: add swap file

Puts 2G swap in /var/swap of OVA. This serves as backup when you hit
the memory cap for the image.

Fixes #57171 and fixes #22696
This commit is contained in:
Matthew Bauer 2019-03-12 21:24:44 -04:00
parent 1e7bac9401
commit dbc4543812

View file

@ -99,6 +99,11 @@ in {
boot.growPartition = true;
boot.loader.grub.device = "/dev/sda";
swap.swapDevices = {
device = "/var/swap";
size = 2048;
};
virtualisation.virtualbox.guest.enable = true;
};