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

25 lines
504 B
Nix
Raw 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;
};
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
}