clean boot partion on nixos due to multiple old generations
How can I free up space on the boot partition in NixOS? The nixos-rebuild switch command creates entries in the boot partition, which is usually 512 MB in size and can hold around 40 previous generations. When testing frequently, this space fills up quickly. Is there a way to manage this, such as cleaning up old generations or selecting specific generations to keep?
If possible, please provide a solution or guidance.
If you don’t want to remove all previous generations, I’d suggest to simply prune the /nix/var/nix/profiles/system* symlinks manually. (I really do like to keep some “selection” of past systems around.)