lanzaboote: fix module using flake-compat

This commit is contained in:
Bloxx12 2025-07-22 20:54:09 +02:00
commit f687548762

View file

@ -4,17 +4,19 @@
pkgs,
sources,
...
}:
let
}: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.system.boot.lanzaboote;
in
{
in {
options.modules.system.boot.lanzaboote.enable = mkEnableOption "Lanzaboote";
imports = [
(sources.lanzaboote + "/nix/modules/lanzaboote.nix")
(import sources.flake-compat {
src = sources.lanzaboote;
copySourceTreeToStore = false;
useBuiltinsFetchTree = true;
}).outputs.nixosModules.lanzaboote
];
config = mkIf cfg.enable {