From d6f3aadeaff7ea948963d4929e30958ca1c7b548 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 1 Sep 2024 11:39:53 +0200 Subject: [PATCH] Enable nix garbage collection service --- configuration.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configuration.nix b/configuration.nix index 72a46e9..2a5bf0d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -119,6 +119,13 @@ extraOptions = '' experimental-features = nix-command flakes ''; + + gc = { + automatic = true; + persistent = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; }; system = {