From 5fb84275bfd35070359757aa271817d61ee8b60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Sun, 21 Jul 2024 18:40:17 +0200 Subject: [PATCH] automatically collect garbage --- configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.nix b/configuration.nix index eb5e04d..632729d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -160,4 +160,11 @@ # flakes nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + # automatically collect garbage + nix.gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 60d"; + }; }