From 82344372dd538e0c6f14b5f51cf95b41eb452970 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sat, 15 Apr 2023 10:07:59 -0400 Subject: [PATCH] add auto garbage collection --- modules/common/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/common/default.nix b/modules/common/default.nix index 95bb732..9793826 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -79,9 +79,16 @@ warn-dirty = false ''; + gc = { + automatic = true; + dates = "weekly"; + options = "--delete-older-than 7d"; + }; + settings = { # Add community Cachix to binary cache + builders-use-substitutes = true; substituters = lib.mkIf (!pkgs.stdenv.isDarwin) [ "https://nix-community.cachix.org" ]; trusted-public-keys = lib.mkIf (!pkgs.stdenv.isDarwin) [