From cfa0f64f7054afb992f9f0c5cd96b9d0d9790a27 Mon Sep 17 00:00:00 2001 From: Leyla Becker Date: Thu, 3 Oct 2024 16:48:35 +0200 Subject: [PATCH] added weekly timers to garbage collect and optimize made garbage collector collect older then a week --- enviroments/common/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/enviroments/common/default.nix b/enviroments/common/default.nix index 78bd2cd..db1549d0 100644 --- a/enviroments/common/default.nix +++ b/enviroments/common/default.nix @@ -8,8 +8,15 @@ experimental-features = ["nix-command" "flakes"]; trusted-users = ["leyla"]; }; - gc.automatic = true; - optimise.automatic = true; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + optimise = { + automatic = true; + dates = "weekly"; + }; }; # Enable networking