Files
nix-config/modules/nixos/boot/lanzaboote/default.nix
mjallen18 a6167bf31c stuff
2025-09-02 19:23:08 -05:00

33 lines
537 B
Nix

{
config,
lib,
namespace,
...
}:
with lib;
let
cfg = config.${namespace}.bootloader.lanzaboote;
in
{
imports = [ ./options.nix ];
config = mkIf cfg.enable {
boot = {
loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/boot";
};
};
lanzaboote = {
enable = cfg.enable;
pkiBundle = "/etc/secureboot";
settings = {
console-mode = "max";
};
configurationLimit = cfg.configLimit;
};
};
};
}