From 034b6f60626be014d00f68e02d8614ddf7ba44a0 Mon Sep 17 00:00:00 2001 From: "Ricardo M. Correia" Date: Tue, 11 Mar 2014 22:16:00 +0100 Subject: nix-collect-garbage: Add --delete-older-than option --- doc/manual/nix-collect-garbage.xml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'doc/manual/nix-collect-garbage.xml') diff --git a/doc/manual/nix-collect-garbage.xml b/doc/manual/nix-collect-garbage.xml index a13e365a4e00..a97e3b7c6ba5 100644 --- a/doc/manual/nix-collect-garbage.xml +++ b/doc/manual/nix-collect-garbage.xml @@ -20,6 +20,7 @@ nix-collect-garbage + period @@ -35,13 +36,18 @@ The command nix-collect-garbage is mostly an alias of nix-store --gc, that is, it deletes all unreachable paths in -the Nix store to clean up your system. However, it provides an -additional option () -that deletes all old generations of all profiles in +the Nix store to clean up your system. However, it provides two +additional options: (), +which deletes all old generations of all profiles in /nix/var/nix/profiles by invoking -nix-env --delete-generations old on all profiles. -Of course, this makes rollbacks to previous configurations -impossible. +nix-env --delete-generations old on all profiles +(of course, this makes rollbacks to previous configurations +impossible); and + period, +where period is a value such as 30d, which deletes +all non-current generations that are older than the specified number of +days in all profiles in /nix/var/nix/profiles. + -- cgit 1.4.1