feat(base): add nix store garbage collection and boot entry limits - #322
Merged
Merged
Conversation
Configure automatic weekly GC across all platforms with --delete-older-than 30d. Limits systemd-boot entries to 10 on NixOS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
stackptr
enabled auto-merge (squash)
March 7, 2026 16:32
stackptr
disabled auto-merge
March 7, 2026 16:34
mkIf only guards the value, not the option definition, so the boot option was still being defined on darwin where it doesn't exist. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Using pkgs at the module top level (via //) forces eager evaluation during module structure resolution, causing infinite recursion. Move boot.loader config to a NixOS-specific module where it belongs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
modules/base/gc.nixfor automatic Nix store garbage collection across all hosts--delete-older-than 30don both NixOS (nix.gc.dates) and darwin (nix.gc.interval)boot.loader.systemd-boot.configurationLimit)Test plan
nh os switch .#glyph— verify NixOS gc timer and boot config applynh darwin switch .#Rhizome— verify darwin gc launchd interval applies🤖 Generated with Claude Code