Created
February 13, 2017 01:20
-
-
Save lufia/a0d156fb076ccf0ac122fd429362e61b to your computer and use it in GitHub Desktop.
cleanup nixpkgs generations except latest generation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
c=/nix/var/nix/profiles/per-user/$USER/channels | |
nix-env --delete-generations -p $c old | |
nix-env --delete-generations old | |
nix-store --gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment