From 0f96e97f8b56547711e68dfadc46585bea34ace4 Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@private.storage>
Date: Wed, 11 Aug 2021 21:51:28 +0000
Subject: [PATCH] Clean up nix-store on the machines with limited disk space

---
 morph/lib/issuer-aws.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/morph/lib/issuer-aws.nix b/morph/lib/issuer-aws.nix
index a66ab72a..86687a0f 100644
--- a/morph/lib/issuer-aws.nix
+++ b/morph/lib/issuer-aws.nix
@@ -17,4 +17,10 @@
   # morph-supplied name.  See also
   # <https://github.com/DBCDK/morph/issues/146>.
   networking.hostName = name;
+
+  # Clean up packages after a while
+  nix.gc = {
+    automatic = true;
+    dates = "weekly";
+  };
 }
-- 
GitLab