-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
idea: nix-collect-garbage "--delete-only-substitutable" #2553
Comments
As an approximation, you could delete things by signature. Probably more efficient than querying the substituter for every one of your paths. |
I'd vote for this to be default, and explicit flag to force GC those. On other hand, typical NixOS build produces small unique derivations (for each unique configuration file). These are not worth saving. So some parameter "save derivations, which take more than x seconds to rebuild and are not availble in binary caches" =) |
That last suggestion depends on #1710. |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
Basically, it'd be neat to make it easy to collect builds that are already available via substituters (and not reference locally, hence nix-collect-garbage). I suppose what I'm really looking for is "--dont-delete-if-not-available-anywhere-else-yet" and the use case is on my builders so I can free up space without losing build progress for things not yet uploaded.
Flag name may need to be improved :).
Thoughts? Opinions?
The text was updated successfully, but these errors were encountered: