nix collect-garbage, comrade! there’s also another command to clean up older generations. if you’re using git to version your nix config, you only really need to keep two generations: the current, and your last successful boot, since you can recover by git checkout.
I had a 200 gb ssd on my laptop and kept running out of space because all the old generations from nixos,
nix collect-garbage
, comrade! there’s also another command to clean up older generations. if you’re using git to version your nix config, you only really need to keep two generations: the current, and your last successful boot, since you can recover by git checkout.