boot: collect garbage weekly and cap boot entries
Run nix.gc weekly to delete generations older than 14 days, and limit lanzaboote to 10 entries so the ESP menu never lists generations whose store paths have already been collected. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
4fb583cf54
commit
611561b20c
1 changed files with 9 additions and 0 deletions
|
|
@ -26,6 +26,15 @@
|
||||||
boot.lanzaboote = {
|
boot.lanzaboote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/var/lib/sbctl";
|
pkiBundle = "/var/lib/sbctl";
|
||||||
|
# Keep ESP entries in step with nix.gc so the menu never lists
|
||||||
|
# generations whose store paths were collected.
|
||||||
|
configurationLimit = 10;
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 14d";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue