This commit is contained in:
2026-05-30 19:03:33 +09:00
parent f5ecef894d
commit 5f1cfc5275
155 changed files with 4168 additions and 300 deletions
+31
View File
@@ -0,0 +1,31 @@
{
inputs,
lib,
config,
...
}:
let
cfg = config.my.system.secure-boot;
in
{
imports = [
inputs.lanzaboote.nixosModules.lanzaboote
];
options.my.system.secure-boot = {
enable = lib.mkEnableOption "secure boot (lanzaboote)";
};
config = lib.mkIf cfg.enable {
boot.loader = {
systemd-boot.enable = lib.mkForce false;
efi.canTouchEfiVariables = true;
efi.efiSysMountPoint = "/boot";
};
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
};
}