Nix Cookbook: Difference between revisions
imported>Nix add storage optimization page |
imported>Nix add generation trimmer script info |
||
| Line 24: | Line 24: | ||
$ nix-env --delete-generations old | $ nix-env --delete-generations old | ||
</syntaxHighlight> | </syntaxHighlight> | ||
===== Generation trimmer script ===== | |||
For a smart interactive script which can handle all the normally available profile types across NixOS and be more conservative and safe than the built-in Nix generations deletion commands, see [[NixOS Generations Trimmer]]. | |||
==== Garbage collection ==== | ==== Garbage collection ==== | ||