ofborg: migrate to fast-nix-gc
Martin Weinelt committed
Jul 11, 2026 at 01:33 UTC
aa29e6225bb9b630c073bc591f9e3fe09027221b
1 file changed
+8
-1
non-critical-infra/modules/ofborg/common.nix
+8
-1
@@ -2,13 +2,20 @@
2
{
3
imports = [
4
inputs.srvos.nixosModules.server
5
+ inputs.fast-nix-gc.nixosModules.default
6
../../../modules/common.nix
7
../../../modules/nspawn-test-containers.nix
8
../common.nix
9
./ofborg-config.nix
10
];
11
11
- nix.gc.automatic = true;
12
+ services.fast-nix-gc = {
13
+ enable = true;
14
+ automatic = true;
15
+ dates = "hourly";
16
+ ensureFree = "30%"; # some breathing room for zfs
17
+ keepRecent = "24h";
18
+ };
19
20
# TODO wire up exporters
21
# TODO loki