Watch
0
0
Fork
You've already forked hyperhive
0

ci-runner: warn when the host has no nix store gc

This commit is contained in:
atlas 2026-11-11 18:16:54 +01:00 • committed by mara
commit 493d2e6c37

View file

@ -236,6 +236,17 @@ in
}
];
# The runner builds through the host's nix daemon, so its outputs fill the
# host's /nix/store. The host's nix settings are not this module's to set;
# it only tells the operator when neither collector is configured.
warnings = lib.optional (!config.nix.gc.automatic && (config.nix.settings.min-free or 0) == 0) ''
services.hyperhive.deploy.ci-runner.enable is on, but this host sets
neither nix.gc.automatic nor nix.settings.min-free. CI builds fill
/nix/store until the disk is full and every job fails with ENOSPC.
Add the GC settings from "Host store maintenance" in
docs/4-implementation/scheduler/ci.md to the host's NixOS config.
'';
# The container hangs off the bridge, takes its address from the
# gateway's DHCP and resolves through its dnsmasq. The gateway also runs
# `hive-tls-ca`, which writes the trust bundle bound in below.