This commit is contained in:
ashisgreat22 2026-01-14 21:24:19 +01:00
commit 2be8de47fa
87 changed files with 11501 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{
config,
lib,
pkgs,
inputs,
...
}:
with lib;
let
cfg = config.myModules.secureBoot;
in
{
imports = [ inputs.lanzaboote.nixosModules.lanzaboote ];
options.myModules.secureBoot = {
enable = mkEnableOption "Secure Boot with Lanzaboote";
pkiBundle = mkOption {
type = types.path;
default = "/var/lib/sbctl";
description = "Path to the PKI bundle directory created by sbctl";
};
};
config = mkIf cfg.enable {
# Lanzaboote replaces systemd-boot
boot.loader.systemd-boot.enable = mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = cfg.pkiBundle;
};
environment.systemPackages = [ pkgs.sbctl ];
};
}