nix/modules/boot/secure-boot.nix
2026-08-26 03:57:23 +02:00

20 lines
420 B
Nix

{ lib, pkgs, inputs, ... }:
{
inputs = [
inputs.lanzaboote.nixosModules.lanzaboote
];
environment.systemPackages = [ pkgs.sbctl ];
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
autoGenerateKeys.enable = true;
autoEnrollKeys = {
enable = true;
autoReboot = true;
};
configurationLimit = 5;
};
}