Compress swap
Graham Christensen committed
Dec 18, 2021 at 21:44 UTC
fa4455e954232fe9751fd35bd0e74acea6c6e9fe
1 file changed
+1
bastion/configuration.nix
+1
@@ -69,6 +69,7 @@ in
69
70
# work around releases taking too much memory
71
swapDevices = [{ device = "/scratch/swapfile"; size = 32 * 1024; }];
72
+ zramSwap.enable = true;
73
74
# Enable swap so mirroring the channels doesn't make AWS think this machine is dead
75
boot.kernel.sysctl."vm.swappiness" = lib.mkDefault 60;