nixos-config/modules/system/devices/boot/lanzaboote/default.nix

18 lines
455 B
Nix
Raw Normal View History

2025-02-25 01:37:56 -05:00
{ config, lib, pkgs, lanzaboote, ... }:
2024-10-09 03:36:08 -04:00
{
imports = [ lanzaboote.nixosModules.lanzaboote ];
2024-10-18 15:32:32 -04:00
2025-02-25 01:37:56 -05:00
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 ];
};
2024-10-09 03:36:08 -04:00
}