feat(tverskoy): Enable services.depot.automatic-gc

Change-Id: I5268ea93cf9727ad7fc1beedf9ec72a9d9e6eae8
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3526
Reviewed-by: tazjin <mail@tazj.in>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2021-09-10 14:34:10 +03:00 committed by tazjin
parent 5e08f9b6c6
commit 6e8b6b3374

View file

@ -18,6 +18,7 @@ config: let
in lib.fix(self: {
imports = [
"${depot.third_party.impermanence}/nixos.nix"
"${depot.path + "/ops/modules/automatic-gc.nix"}"
"${pkgs.home-manager.src}/nixos"
];
@ -181,6 +182,15 @@ in lib.fix(self: {
start = "${depot.users.tazjin.emacs}/bin/tazjins-emacs";
};
};
# Automatically collect garbage from the Nix store.
depot.automatic-gc = {
enable = true;
interval = "1 hour";
diskThreshold = 42; # GiB
maxFreed = 100; # GiB
preserveGenerations = "14d";
};
};
# Automatically detect location to use for redshift