From f687548762f97411b548e4183185b22aa1c73b02 Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Tue, 22 Jul 2025 20:54:09 +0200 Subject: [PATCH] lanzaboote: fix module using flake-compat --- modules/system/boot/lanzaboote.mod.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/system/boot/lanzaboote.mod.nix b/modules/system/boot/lanzaboote.mod.nix index 574d89f..77fbf5f 100644 --- a/modules/system/boot/lanzaboote.mod.nix +++ b/modules/system/boot/lanzaboote.mod.nix @@ -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 { @@ -31,6 +33,6 @@ in loader.systemd-boot.enable = lib.mkForce false; }; - environment.systemPackages = [ pkgs.sbctl ]; + environment.systemPackages = [pkgs.sbctl]; }; }