small Nix tool I wrote tonight: nix-binary-cache-gc

codeberg.org/cyclopentane/nix-

Essentially it's a garbage collector for static binary caches (i.e. directories that statically contain .narinfo and .nar files and that are served by a regular webserver). It's dependency-aware, and uses the / crates.

(Previously I just deleted all files older than a certain amount of days with find and rm, but that tore up the dependency graphs on the cache and regularly caused errors)

0

If you have a fediverse account, you can quote this note from your own instance. Search https://rheinneckar.social/users/cyclopentane/statuses/114263246663943103 on your instance and quote it. (Note that quoting is not supported in Mastodon.)