secure boot

This commit is contained in:
twoneis 2024-07-23 01:30:58 +02:00
parent 999f66dca1
commit 3ad6d63395
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ lib, config, pkgs, ... }: let
inherit (lib) mkIf mkForce;
in mkIf config.withSecureBoot {
environment.systemPackages = [ pkgs.sbctl ];
boot.loader.systemd-boot.enable = mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
}