Skip to content

Instantly share code, notes, and snippets.

@xeppaka
Created April 7, 2018 04:48
Show Gist options
  • Save xeppaka/f6126eebe030a000aa14ed63cc6e8496 to your computer and use it in GitHub Desktop.
Save xeppaka/f6126eebe030a000aa14ed63cc6e8496 to your computer and use it in GitHub Desktop.
# 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