There seems to be no way to add a feature request other than through writing a whole RFC, which is not the type of time I have. Maybe point me to the right place tho... Anyways, ergo this simple issue:
nix.gc.automatic = true; or respectively nix-collect-garbage should allow nixos users to specify specific generations that should not be garbage collected.
E.g. it should be possible to specify some starting points, that one can always return to in case something goes wrong. One could for example have a generation to be considered a "fresh install" to which a new configuration could be deployed, that NEVER gets garbage collected.
Steps To Reproduce
run nix-collect-garbage -d --exclude 1 2 3 4
Expected behavior
every generation other than 1 2 3 and 4 should be garbage collected.
Describe the bug
There seems to be no way to add a feature request other than through writing a whole RFC, which is not the type of time I have. Maybe point me to the right place tho... Anyways, ergo this simple issue:
nix.gc.automatic = true;
or respectivelynix-collect-garbage
should allow nixos users to specify specific generations that should not be garbage collected.E.g. it should be possible to specify some starting points, that one can always return to in case something goes wrong. One could for example have a generation to be considered a "fresh install" to which a new configuration could be deployed, that NEVER gets garbage collected.
Steps To Reproduce
run
nix-collect-garbage -d --exclude 1 2 3 4
Expected behavior
every generation other than 1 2 3 and 4 should be garbage collected.
Screenshots
Additional context
Notify maintainers
Metadata