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 ''; };