nix-config/modules/secureboot/default.nix
2024-07-23 01:30:58 +02:00

12 lines
277 B
Nix

{ lib, config, pkgs, ... }: let
inherit (lib) mkIf mkForce;
in mkIf config.withSecureBoot {
environment.systemPackages = [ pkgs.sbctl ];
boot.loader.systemd-boot.enable = mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
}