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-historyman nix3-profile-wipe-historyTo see why a path in the nix-store isn’t being deleted:
nix-store --query --referrers /nix/store/pathnix-store --gc --print-rootsnix-store --indirect --add-rootThese commands will help identify what’s keeping the path alive.