Open m-bock opened 2 years ago
NixOS has an auto gc feature. You could use this module as an interim solution https://github.com/hercules-ci/hercules-ci-agent/blob/master/internal/nix/gc.nix I plan to look into the problems with Nix autogc (not NixOS) and/or disk space monitoring and gc invocation by the agent itself.
Ideally we'd have a flag in services.hercules-ci-agent.settings.gc
What's the recommended way to handle garbage-collection on the agent side?
Currently we're doing this manually once in a while whenever we hit a "no space left on device" which is not so ideal :)