Boot entry management

Good on you, that’s really the best way to manage your config on NixOS.

Yeah and potentially won’t even work. boot.json is an immediate representation so that different bootloader generators can install their respective bootloader. So for example, for systemd-boot, the config is generated on the fly in a nix expression via a python script using boot.json.

I didn’t see any options to really modify the behavior of this apart from the aforementioned option.

But, what you could do is use the option system.userActivationScripts to add an additional script that does the changes to the boot entries with sed on every rebuild.

1 Like