-
-
Save ajmasia/e3904ceb8adc813a5bc2a9bf2647fee6 to your computer and use it in GitHub Desktop.
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
# nix-env -p /nix/var/nix/profiles/system --delete-generations old | |
# nix-collect-garbage -d | |
# nix-env -p /nix/var/nix/profiles/system --list-generations | |
## Remove entries from /boot/loader/entries: | |
# sudo bash -c "cd /boot/loader/entries; ls | grep -v <current-generation-name> | xargs rm" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to delete old NixOS boot configurations - ielliott.io