lanzaboote: fix module using flake-compat
This commit is contained in:
parent
fcb5ee3581
commit
f687548762
1 changed files with 8 additions and 6 deletions
|
@ -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];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue