From eec55b9d4049c34fdc29508a0bd1da9f9227fef6 Mon Sep 17 00:00:00 2001 From: kuflierl <41301536+kuflierl@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:45:46 +0000 Subject: [PATCH] Change direct binary references to lib.getExe --- nix/modules/lanzaboote.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/modules/lanzaboote.nix b/nix/modules/lanzaboote.nix index 2339a0e5..7c21347e 100644 --- a/nix/modules/lanzaboote.nix +++ b/nix/modules/lanzaboote.nix @@ -126,7 +126,7 @@ in ${optionalString cfg.enrollKeys '' mkdir -p /tmp/pki cp -r ${cfg.pkiBundle}/* /tmp/pki - ${sbctlWithPki}/bin/sbctl enroll-keys --yes-this-might-brick-my-machine + ${lib.getExe sbctlWithPki} enroll-keys --yes-this-might-brick-my-machine ''} # Use the system from the kernel's hostPlatform because this should @@ -163,7 +163,7 @@ in # Place the fwupd efi files in /run and sign them script = '' ln -sf ${config.services.fwupd.package.fwupd-efi}/libexec/fwupd/efi/fwupd*.efi /run/fwupd-efi/ - ${pkgs.sbsigntool}/bin/sbsign --key '${cfg.privateKeyFile}' --cert '${cfg.publicKeyFile}' /run/fwupd-efi/fwupd*.efi + ${lib.getExe' pkgs.sbsigntool "sbsign"} --key '${cfg.privateKeyFile}' --cert '${cfg.publicKeyFile}' /run/fwupd-efi/fwupd*.efi ''; };