blob: 72f2d833f2bb8634262d041d9d21a8e400b12ec3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ config, pkgs, lib, ... }:
let
cfg = config.modules.secure-boot;
in
{
options.modules.secure-boot = {
enable = lib.mkEnableOption "Secure boot with lanzaboote";
};
config = lib.mkIf cfg.enable {
boot.lanzaboote.enable = true;
boot.lanzaboote.pkiBundle = "/etc/secureboot";
# Managed by lanzaboote
boot.loader.systemd-boot.enable = lib.mkForce false;
modules.persistence.directories = [
"/etc/secureboot"
];
environment.systemPackages = [ pkgs.sbctl ];
};
}
|