From de891bb9bbc17d5ea3e4ebce2cc12258e3e5b1f6 Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@private.storage>
Date: Wed, 11 Aug 2021 21:56:42 +0000
Subject: [PATCH] Less swap on disk constrained AWS hosts

---
 morph/lib/issuer-aws.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix
index a66ab72a..2db5a7aa 100644
--- a/morph/lib/issuer-aws.nix
+++ b/morph/lib/issuer-aws.nix
@@ -9,7 +9,7 @@
   boot.kernel.sysctl = { "vm.swappiness" = 0; };
   swapDevices = [ {
     device = "/var/swapfile";
-    size = 8192; # megabytes
+    size = 4096; # megabytes
     randomEncryption = true;
   } ];
 
-- 
GitLab