From 80c1a7927a2ea53e123d1fd796b1dff41a30eec9 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Sun, 5 Mar 2023 18:38:42 +0100 Subject: [PATCH] flora-6: configure more agressive garbage collection Reason: it has already happened a few times, that flora-6 ran out of disk space. With this fix, hopefully the garbage collection should kick in earlier and prevent this from happening --- hosts/flora-6/flora-6.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/flora-6/flora-6.nix b/hosts/flora-6/flora-6.nix index d7c59716..963ba486 100644 --- a/hosts/flora-6/flora-6.nix +++ b/hosts/flora-6/flora-6.nix @@ -54,6 +54,14 @@ in { } ]; + # Override nix.conf for more agressive garbage collection + nix.extraOptions = lib.mkForce '' + min-free = 536870912 + keep-outputs = false + keep-derivations = false + fallback = true + ''; + # Machine user for CI pipelines users.users.hakkonaut = { description = "CI and automation user"; -- 2.44.2