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,
|
pkgs,
|
||||||
sources,
|
sources,
|
||||||
...
|
...
|
||||||
}:
|
}: let
|
||||||
let
|
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.system.boot.lanzaboote;
|
cfg = config.modules.system.boot.lanzaboote;
|
||||||
in
|
in {
|
||||||
{
|
|
||||||
options.modules.system.boot.lanzaboote.enable = mkEnableOption "Lanzaboote";
|
options.modules.system.boot.lanzaboote.enable = mkEnableOption "Lanzaboote";
|
||||||
imports = [
|
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 {
|
config = mkIf cfg.enable {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue