nix: fix lanzatool integration/merge mixup

This commit is contained in:
Julian Stecklina 2022-11-25 23:42:34 +01:00
parent dec7c06e6b
commit c87b2a09dc
3 changed files with 3 additions and 8 deletions

View File

@ -130,8 +130,7 @@
'';
in {
overlays.default = final: prev: {
inherit lanzaboote;
lanzatool = lanzatoolBin;
inherit lanzatool;
};
nixosModules.lanzaboote = import ./nix/lanzaboote.nix;
@ -158,7 +157,7 @@
];
inputsFrom = [
lanzatool
lanzatoolBin
lanzaboote
];
};
@ -188,7 +187,6 @@
enable = true;
enrollKeys = lib.mkDefault true;
pkiBundle = ./pki;
package = lanzatool;
};
};
};

View File

@ -70,7 +70,6 @@ fn install(
) -> Result<()> {
let lanzaboote_stub = std::env::var("LANZABOOTE_STUB")?;
let initrd_stub = std::env::var("LANZABOOTE_INITRD_STUB")?;
let sbsigntool = std::env::var("SBSIGNTOOL")?;
install::install(
public_key,
@ -78,8 +77,7 @@ fn install(
pki_bundle,
auto_enroll,
bootspec,
Path::new(&sbsigntool),
Path::new(&lanzaboote_stub),
Path::new(&initrd_stub)
Path::new(&initrd_stub),
)
}

View File

@ -15,7 +15,6 @@ pub fn install(
_pki_bundle: Option<PathBuf>,
_auto_enroll: bool,
bootspec: &Path,
sbsigntool: &Path,
lanzaboote_stub: &Path,
initrd_stub: &Path,
) -> Result<()> {