From c76584670f4feba46e26dbd978e480c7c9fbfdcd Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Tue, 6 Jun 2023 10:51:38 +0100 Subject: [PATCH] Turn on automatic garbage collection --- system/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/configuration.nix b/system/configuration.nix index e0bf560..c736659 100644 --- a/system/configuration.nix +++ b/system/configuration.nix @@ -66,6 +66,11 @@ in nix = { extraOptions = "experimental-features = nix-command flakes"; package = pkgs.nixFlakes; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 30d"; + }; }; services.xserver.enable = true;