feat: only keep the previous 5 generations bootable

This commit is contained in:
2025-09-27 12:39:07 +05:00
parent ca47e15309
commit 63a06ca3ec
3 changed files with 42 additions and 34 deletions

View File

@@ -92,7 +92,10 @@
boot = {
loader = {
# Set this to true on first install. This must be false for secure boot.
systemd-boot.enable = lib.mkForce (!config.hostSpec.secureBoot);
systemd-boot = {
enable = lib.mkForce (!config.hostSpec.secureBoot);
configurationLimit = config.hostSpec.bootHistoryLimit;
};
efi.canTouchEfiVariables = true;
};