boot.loader.systemd-boot.bootCounting.enable
NixOS option
Whether to enable Automatic Boot Assessment. New boot entries are written with a boot counter in the file name. On each boot, systemd-boot decrements the counter; once the booted system reaches boot-complete.target, systemd-bless-boot.service removes the counter and marks the entry as good. An entry whose counter reaches zero is considered bad and will be skipped in favour of an older generation .
type: booleanDefault
false
Example
declared in: nixos/modules/system/boot/loader/systemd-boot/systemd-boot.nixView source on NixOS/nixpkgs →true