Hello, I was wondering if there’s any way to create a root to prevent the garbage collector from cleaning up the packages downloaded by the latest nixos-rebuild in cases where the rebuild does not succeed?
As I’m running unstable and some other flakes, so it’s not uncommon for a rebuild to fail. Often these can be fixed by switching a package to my input for nixpkgs-stable or nixpkgs-master, but sometimes end up in the ‘check on this later’ pile.
I enabled nix.gc.automatic. If the garbage collector runs before a new rebuild generation completes it will delete the downloaded packages, resulting in them all being downloaded again next rebuild.