-
Notifications
You must be signed in to change notification settings - Fork 4
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
Enabe Automatic Garbage Collection #14
base: main
Are you sure you want to change the base?
Conversation
yea that was my stupidity but made it home and this builds without errors now |
just wanted to know if u guys had opinions on the frequency / amount of old generations we preserve. and if we need to preserve old generations on the host at all |
Actually I do, I think it’s probably better to keep a set number of past
generations (eg. 5) than to remove all generations older than 30 days
…On Tue, Feb 18, 2025 at 11:45 PM laksith19 ***@***.***> wrote:
just wanted to know if u guys had opinions on the frequency / amount of
old generations we preserve. and if we need to preserve old generations on
the host at all
—
Reply to this email directly, view it on GitHub
<#14 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABI35LVAMX5IUZO4OWBAIR32QQZCPAVCNFSM6AAAAABXNORU7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXG44TMMJWHA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
[image: laksith19]*laksith19* left a comment (ocf/nix#14)
<#14 (comment)>
just wanted to know if u guys had opinions on the frequency / amount of
old generations we preserve. and if we need to preserve old generations on
the host at all
—
Reply to this email directly, view it on GitHub
<#14 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABI35LVAMX5IUZO4OWBAIR32QQZCPAVCNFSM6AAAAABXNORU7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRXG44TMMJWHA>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
@singingtelegram yea i agree loll, that felt more "correct" but it's not as clean as keeping the prev 30 days but this should basically have the intended effect. the systemd service will delete old generations and the automatic garbage collector will just clean all un-referenced paths. tested on pumpkin and it seems to work. Logs from pumpkin deleting profiles
Logs from pumpkin garbage collecting nix store
|
removes old nix store files from generations older than 30 days every week. these numbers are kinda arbitrary