From b801e63c3d1598782d1bc9291644028dfebea2be Mon Sep 17 00:00:00 2001 From: kat witch Date: Mon, 6 Sep 2021 22:11:13 +0100 Subject: [PATCH] profiles/base: Make GC weekly --- config/profiles/base/nix.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/profiles/base/nix.nix b/config/profiles/base/nix.nix index 44a0758c..9ce98005 100644 --- a/config/profiles/base/nix.nix +++ b/config/profiles/base/nix.nix @@ -24,8 +24,11 @@ binaryCachePublicKeys = [ "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" "kittywitch.cachix.org-1:KIzX/G5cuPw5WgrXad6UnrRZ8UDr7jhXzRTK/lmqyK0=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; autoOptimiseStore = true; - gc.automatic = lib.mkDefault true; - gc.options = lib.mkDefault "--delete-older-than 1w"; + gc = { + automatic = lib.mkDefault true; + dates = lib.mkDefault "weekly"; + options = lib.mkDefault "--delete-older-than 1w"; + }; trustedUsers = [ "root" "@wheel" ]; }; }