nichts/modules/system/boot/lanzaboote/module.nix
2025-04-06 22:09:22 +02:00

30 lines
605 B
Nix

{
config,
inputs,
lib,
pkgs,
...
}: let
inherit (lib.modules) mkIf;
in {
imports = [
inputs.lanzaboote.nixosModules.lanzaboote
];
config = mkIf false {
boot = {
lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
# 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.
loader.systemd-boot.enable = lib.mkForce false;
};
environment.systemPackages = [pkgs.sbctl];
};
}