Deleting old generations
tldr: nix profile history
Simplest strategy go to /nix/var/nix/profiles/
delete symlinks, then run nix store gc
.
Could be nice to make an interactive in oizys
to choose profiles, delete profiles, then ask about garbage collection.
Help:
man nix3-profile-history
man nix3-profile-wipe-history
To see why a path in the nix-store isn’t being deleted:
nix-store --query --referrers /nix/store/path
nix-store --gc --print-roots
nix-store --indirect --add-root
These commands will help identify what’s keeping the path alive.