Skip to content

Commit

Permalink
Merge pull request #12171 from NixOS/mergify/bp/2.25-maintenance/pr-1…
Browse files Browse the repository at this point in the history
…2155

Document `--max-freed` for `nix-collect-garbage` (backport #12155)
  • Loading branch information
mergify[bot] authored Jan 10, 2025
2 parents 85a4f62 + 6b5b538 commit b9f89c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/manual/source/command-ref/nix-collect-garbage.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ These options are for deleting old [profiles] prior to deleting unreachable [sto
This is the equivalent of invoking [`nix-env --delete-generations <period>`](@docroot@/command-ref/nix-env/delete-generations.md#generations-time) on each found profile.
See the documentation of that command for additional information about the *period* argument.

- <span id="opt-max-freed">[`--max-freed`](#opt-max-freed)</span> *bytes*

<!-- duplication from https://github.com/NixOS/nix/blob/442a2623e48357ff72c77bb11cf2cf06d94d2f90/doc/manual/source/command-ref/nix-store/gc.md?plain=1#L39-L44 -->

Keep deleting paths until at least *bytes* bytes have been deleted,
then stop. The argument *bytes* can be followed by the
multiplicative suffix `K`, `M`, `G` or `T`, denoting KiB, MiB, GiB
or TiB units.

{{#include ./opt-common.md}}

{{#include ./env-common.md}}
Expand Down

0 comments on commit b9f89c8

Please sign in to comment.