From d48667798c8104831a93857d263d4788d7aa661a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 28 Dec 2022 11:22:37 +0300 Subject: chore(tazjin/polyanka): turn on automatic-gc module Change-Id: I0521ded37ea047124c117b07d01016a6f0a1d4ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/7657 Tested-by: BuildkiteCI Reviewed-by: tazjin --- users/tazjin/nixos/polyanka/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'users/tazjin/nixos') diff --git a/users/tazjin/nixos/polyanka/default.nix b/users/tazjin/nixos/polyanka/default.nix index 95d1214ab3ba..261071849514 100644 --- a/users/tazjin/nixos/polyanka/default.nix +++ b/users/tazjin/nixos/polyanka/default.nix @@ -97,6 +97,15 @@ in ]; }; + # Automatically collect garbage from the Nix store. + services.depot.automatic-gc = { + enable = true; + interval = "daily"; + diskThreshold = 2; # GiB + maxFreed = 8; # GiB + preserveGenerations = "14d"; + }; + # List packages installed in system profile. To search, run: # $ nix search wget environment.systemPackages = with pkgs; [ -- cgit 1.4.1