nixcfg/modules/nixos/services/secureboot/default.nix
Harald Hoyer e5615c85bf feat(nix): update secure boot and HALO system configuration
- Set `pkiBundle` in `secureboot` to use `mkDefault` for better configurability.
- Added kernel parameters for HALO, improving performance and boot customization.
- Configured ROCm symlink and switched HALO to `linuxPackages_latest`.
2026-02-11 16:33:50 +01:00

28 lines
452 B
Nix

{
options,
config,
lib,
pkgs,
...
}:
with lib;
with lib.metacfg;
let
cfg = config.metacfg.secureboot;
in
{
options.metacfg.secureboot = with types; {
enable = mkBoolOpt false "Whether or not to enable secureboot.";
};
config = mkIf cfg.enable {
boot = {
lanzaboote = {
enable = true;
pkiBundle = mkDefault "/etc/secureboot";
};
loader.systemd-boot.enable = lib.mkForce false;
};
};
}