|
Nix
2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
Public Types | |
| enum | GCAction { gcReturnLive , gcReturnDead , gcDeleteDead , gcDeleteSpecific , gcTryDeleteSpecific } |
Public Attributes | |
| GCAction | action {gcDeleteDead} |
| bool | ignoreLiveness {false} |
| StorePathSet | pathsToDelete |
| uint64_t | maxFreed {std::numeric_limits<uint64_t>::max()} |
Garbage collector operation:
gcReturnLive: return the set of paths reachable from (i.e. in the closure of) the roots.gcReturnDead: return the set of paths not reachable from the roots.gcDeleteDead: actually delete the latter set.gcDeleteSpecific: delete the paths listed in pathsToDelete, failing if any are still reachable.gcTryDeleteSpecific: delete the paths listed in pathsToDelete, insofar as they are not reachable. Any that could not be deleted are returned via the kept field of GCResults. | bool nix::GCOptions::ignoreLiveness {false} |
If ignoreLiveness is set, then reachability from the roots is ignored (dangerous!). However, the paths must still be unreferenced within the store (i.e., there can be no other store paths that depend on them).
| uint64_t nix::GCOptions::maxFreed {std::numeric_limits<uint64_t>::max()} |
Stop after at least maxFreed bytes have been freed.
| StorePathSet nix::GCOptions::pathsToDelete |
For gcDeleteSpecific, the paths to delete.