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:
parent
5e08f9b6c6
commit
6e8b6b3374
1 changed files with 10 additions and 0 deletions
|
@ -18,6 +18,7 @@ config: let
|
||||||
in lib.fix(self: {
|
in lib.fix(self: {
|
||||||
imports = [
|
imports = [
|
||||||
"${depot.third_party.impermanence}/nixos.nix"
|
"${depot.third_party.impermanence}/nixos.nix"
|
||||||
|
"${depot.path + "/ops/modules/automatic-gc.nix"}"
|
||||||
"${pkgs.home-manager.src}/nixos"
|
"${pkgs.home-manager.src}/nixos"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -181,6 +182,15 @@ in lib.fix(self: {
|
||||||
start = "${depot.users.tazjin.emacs}/bin/tazjins-emacs";
|
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
|
# Automatically detect location to use for redshift
|
||||||
|
|
Loading…
Reference in a new issue