about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-12-28T08·22+0300
committertazjin <tazjin@tvl.su>2022-12-28T08·25+0000
commitd48667798c8104831a93857d263d4788d7aa661a (patch)
treead1425b9f6c7514ba2f2a05e02aa91518e5fc4a8 /users
parent62e19a83216d6294b4c3469d3e05e7f0d00db69d (diff)
chore(tazjin/polyanka): turn on automatic-gc module r/5516
Change-Id: I0521ded37ea047124c117b07d01016a6f0a1d4ac
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7657
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users')
-rw-r--r--users/tazjin/nixos/polyanka/default.nix9
1 files changed, 9 insertions, 0 deletions
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; [