An open API service indexing awesome lists of open source software.

https://github.com/astro/nix-cache-cut

Trim Nix binary caches according to GC roots
https://github.com/astro/nix-cache-cut

binary-cache gc nix nixos

Last synced: about 2 months ago
JSON representation

Trim Nix binary caches according to GC roots

Awesome Lists containing this project

README

        

# nix-cache-cut

Yet another garbage collector for Nix binary caches.

This one runs with a list of GC roots just like your ordinary
`nix-collect-garbage`. It does not operate time-based to expire old
files like [lheckemann's
cache-gc](https://github.com/lheckemann/cache-gc).

## Usage

```console
$ nix run github:astro/nix-cache-cut -- --help
Trim Nix binary caches according to GC roots

Usage: nix-cache-cut [OPTIONS] [GCROOTS]...

Arguments:
Cache directory
[GCROOTS]... Garbage collector roots [default: /nix/var/nix/gcroots]

Options:
-n, --dry-run Do not actually delete files
-h, --help Print help
-V, --version Print version
```