lanzaboote: init

This commit is contained in:
Charlie Root 2025-04-06 22:09:17 +02:00
commit 83335cf7a2
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
4 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{
config,
inputs,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
in {
imports = [
inputs.lanzaboote.nixosModules.lanzaboote
];
config = mkIf false {
boot = {
lanzaboote = {
enable = true;
pkiBundle = "/var/lib/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.
loader.systemd-boot.enable = lib.mkForce false;
};
environment.systemPackages = [pkgs.sbctl];
};
}