NixOS-Config/modules/system/devices/boot/lanzaboote/default.nix

26 lines
576 B
Nix
Raw Permalink Normal View History

{ lanzaboote, lib, config, pkgs, ... }:
2024-10-09 03:36:08 -04:00
{
imports = [ lanzaboote.nixosModules.lanzaboote ];
2024-10-18 15:32:32 -04:00
options.system.lanzaboote = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Enable Lanzaboote and force disable Systemd-boot";
};
2024-10-09 03:36:08 -04:00
};
config = lib.mkIf config.system.lanzaboote.enable {
boot = {
loader.systemd-boot.enable = lib.mkForce false;
lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
};
environment.systemPackages = with pkgs; [ sbctl ];
};
2024-10-09 03:36:08 -04:00
}