nixos-config/modules/system/devices/boot/lanzaboote/default.nix
2025-02-25 01:37:56 -05:00

17 lines
455 B
Nix

{ config, lib, pkgs, lanzaboote, ... }:
{
imports = [ lanzaboote.nixosModules.lanzaboote ];
options.system.lanzaboote.enable = lib.mkEnableOption "Enable lanzaboote";
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 ];
};
}