From ee19b67b1a3179f92c06399a2311eb217b651172 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Fri, 19 May 2023 22:05:32 -0700 Subject: [PATCH] README --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..21bb117 --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Nix Profile GC + +Clean up old profiles more carefully than `nix-collect-garbage --delete-older-than` + +This module removes most old profiles, but makes sure to keep around the last few profiles that +served this machine well -- profiles this machine ran on for a (configurable) time -- even if +they're old. + +This is a NixOS Module rather than a stand-alone tool because it determines which extra profiles +need preserving by periodically logging the currently-active profiles. + +See also: [Announcement](https://scottworley.com/blog/2023-05-19-nix-profile-gc.html) -- 2.44.1