Merge pull request #3048 from toonn/nix-env_doc

Fix nix-env documentation for --delete-generations
This commit is contained in:
Eelco Dolstra 2019-08-29 15:22:01 +02:00 committed by GitHub
commit 8478c99d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -1370,10 +1370,13 @@ profile. The generations can be a list of generation numbers, the
special value <literal>old</literal> to delete all non-current special value <literal>old</literal> to delete all non-current
generations, a value such as <literal>30d</literal> to delete all generations, a value such as <literal>30d</literal> to delete all
generations older than the specified number of days (except for the generations older than the specified number of days (except for the
generation that was active at that point in time), or a value such as. generation that was active at that point in time), or a value such as
<literal>+5</literal> to only keep the specified items older than the <literal>+5</literal> to keep the last <literal>5</literal> generations
current generation. Periodically deleting old generations is important ignoring any newer than current, e.g., if <literal>30</literal> is the current
to make garbage collection effective.</para> generation <literal>+5</literal> will delete generation <literal>25</literal>
and all older generations.
Periodically deleting old generations is important to make garbage collection
effective.</para>
</refsection> </refsection>