liminalOS/modules/nixos/secureboot.nix

18 lines
463 B
Nix
Raw Permalink Normal View History

2024-08-05 02:51:43 -07:00
({ pkgs, lib, ... }: {
environment.systemPackages = [
# For debugging and troubleshooting Secure Boot.
pkgs.sbctl
];
2024-08-05 02:51:43 -07:00
# Lanzaboote currently replaces the systemd-boot module.
# This setting is usually set to true in configuration.nix
# generated at installation time. So we force it to false
# for now.
boot.loader.systemd-boot.enable = lib.mkForce false;
2024-08-05 02:51:43 -07:00
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
})