Kitaab

Nix Garbage Collection

nix ops 2022-07-21 20:43

%update 2022-07-21 20:45

This will delete all generations asides from the currently installed one nix-env --delete-generations old

You could also do by date instead nix-env --delete-generations 7d

Now that the generations are gone you can clean up some space from the nix store too: nix-store --gc