nix-community/lanzaboote

Extending bootloader installation

Opened this issue · 1 comments

It would be great if there was a way of directly extending the bootloader installation process.

In nixpkgs, this is possible by setting the boot.loader.systemd-boot.extraInstallCommands option, but lanzaboote does not make use of it.

I don't think there's any clean way to do this right now, since lanzaboote uses boot.loader.external for itself.

Would it make sense for lanzaboote to make use of this option, adding its contents to the end of the install hook; or perhaps creating a new one for itself, while still using the nixpkgs option for its default value?

I would also be chuffed if there were a pre-install hook in addition to the post install hook