Enable default garbage collection on modules/nixos/xinux #15

Closed
opened 2026-05-27 08:52:05 +00:00 by bahrom04 · 5 comments
Owner

For example like this:

# Garbage collector.
    gc = {
      automatic = true;
      options = "--delete-older-than 20d";
    };
For example like this: ```nix # Garbage collector. gc = { automatic = true; options = "--delete-older-than 20d"; }; ```
bahrom04 changed title from Enable default garbage collection to Enable default garbage collection on modules/nixos/xinux 2026-05-27 08:52:20 +00:00
Owner

30 to 60 days seems good to me, I'd even say 60 straight. Less than 30 defeats the purpose of being "atomic" as we promise reproducibility and more than 30 days is enough for user to trigger a rebuild at least "once".

30 to 60 days seems good to me, I'd even say 60 straight. Less than 30 defeats the purpose of being "atomic" as we promise reproducibility and more than 30 days is enough for user to trigger a rebuild at least "once".
Owner

The thing that I'm afraid of is that, once you trigger a clean-up, you have to trigger a rebuild to create first generation, so machine is bootable, if not, grub ain't gonna boot to anything hence making machine unusable...

The thing that I'm afraid of is that, once you trigger a clean-up, you have to trigger a rebuild to create first generation, so machine is bootable, if not, grub ain't gonna boot to anything hence making machine unusable...
Owner

The best case scenario would be if we offer our users a manual clean-up button in our new Settings app which would do the clean-up and afterwards run a nixos-rebuild creating first generation to keep machine bootable.

The best case scenario would be if we offer our users a manual clean-up button in our new Settings app which would do the clean-up and afterwards run a nixos-rebuild creating first generation to keep machine bootable.
Author
Owner

@orzklv wrote in #15 (comment):

chine bootable.

sounds good

@orzklv wrote in https://git.oss.uzinfocom.uz/xinux/modules/issues/15#issuecomment-1113: > chine bootable. sounds good
Owner

Then, I think we shall move this issue to the settings repository.

Then, I think we shall move this issue to the settings repository.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
xinux/modules#15
No description provided.