bjarte: only keep 5 nixos revisions

This commit is contained in:
Peder Bergebakken Sundt 2024-07-08 22:30:11 +02:00
parent eda580dbc3
commit 08a31cba75
2 changed files with 11 additions and 4 deletions

View File

@ -80,8 +80,9 @@
networking.firewall.enable = true; # default
# https://discourse.nixos.org/t/what-to-do-with-a-full-boot-partition/2049
boot.loader.grub.configurationLimit = 15;
boot.loader.systemd-boot.configurationLimit = 15;
boot.loader.raspberryPi.uboot.configurationLimit = 15;
boot.loader.generic-extlinux-compatible.configurationLimit = 15;
# raise to 15 if auto upgrading
boot.loader.grub.configurationLimit = lib.mkDefault 5;
boot.loader.systemd-boot.configurationLimit = lib.mkDefault 5;
boot.loader.raspberryPi.uboot.configurationLimit = lib.mkDefault 5;
boot.loader.generic-extlinux-compatible.configurationLimit = lib.mkDefault 5;
}

View File

@ -26,4 +26,10 @@
"--update-input" "nixos-hardware"
];
# lots of "empty" updates
boot.loader.grub.configurationLimit = 15;
boot.loader.systemd-boot.configurationLimit = 15;
boot.loader.raspberryPi.uboot.configurationLimit = 15;
boot.loader.generic-extlinux-compatible.configurationLimit = 15;
}