service/lanzaboote: init

This commit is contained in:
Kevin Baensch 2025-06-19 21:10:45 +02:00
parent 82e1c38e63
commit 87e83f336f
Signed by: derped
GPG key ID: C0F1D326C7626543
3 changed files with 33 additions and 1 deletions

26
services/lanzaboote.nix Normal file
View file

@ -0,0 +1,26 @@
{
config,
lib,
pkgs,
...
}:
with lib;
mkIf (elem "lanzaboote" config.machine.services) {
environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.
pkgs.sbctl
];
# Lanzaboote currently replaces the systemd-boot module.
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
# for now.
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/persist/var/lib/sbctl";
};
}