From ff3704a94561929fa56fcef68ebe8b2b1cb87b93 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Tue, 27 Feb 2024 02:59:13 -0500 Subject: [PATCH] add space optimizations for servers Signed-off-by: ahuston-0 --- systems/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/systems/configuration.nix b/systems/configuration.nix index dd86329..15ab3da 100644 --- a/systems/configuration.nix +++ b/systems/configuration.nix @@ -187,11 +187,21 @@ connect-timeout = 20; }; + extraOptions = '' + min-free = ${toString (100 * 1024 * 1024)} + max-free = ${toString (1024 * 1024 * 1024)} + ''; + gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 30d"; }; + + optimize = { + automatic = true; + dates = [ "01:00" ]; + }; }; system = {