From a46b6f576645822c21a6b95872d8bb4c549fc080 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 5 Jan 2025 20:19:16 -0500 Subject: [PATCH] attic: configure garbage collection --- hosts/chunk/attic.nix | 4 ++++ hosts/chunk/default.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/hosts/chunk/attic.nix b/hosts/chunk/attic.nix index da509bd..685d3bd 100644 --- a/hosts/chunk/attic.nix +++ b/hosts/chunk/attic.nix @@ -18,6 +18,10 @@ path = "/mnt/attic"; }; + garbage-collection = { + default-retention-period = "3 months"; + }; + chunking = { nar-size-threshold = 128 * 1024 * 1024; min-size = 64 * 1024 * 1024; diff --git a/hosts/chunk/default.nix b/hosts/chunk/default.nix index f0d214e..f9daba8 100644 --- a/hosts/chunk/default.nix +++ b/hosts/chunk/default.nix @@ -172,6 +172,7 @@ tmux file sops + attic-server ]; environment.variables = {