mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 17:12:27 +00:00
nixos/clevis: fix luks support
Add missing packages when clevis is used for luks unlock It is not needed to expose all execuables via extraBin, therefor removed curl.
This commit is contained in:
@@ -77,6 +77,9 @@ in
|
||||
copy_bin_and_libs ${pkgs.jose}/bin/jose
|
||||
copy_bin_and_libs ${pkgs.curl}/bin/curl
|
||||
copy_bin_and_libs ${pkgs.bashNonInteractive}/bin/bash
|
||||
copy_bin_and_libs ${pkgs.cryptsetup}/bin/cryptsetup
|
||||
copy_bin_and_libs ${pkgs.gnused}/bin/gnused
|
||||
copy_bin_and_libs ${pkgs.gnugrep}/bin/gnugrep
|
||||
|
||||
copy_bin_and_libs ${pkgs.tpm2-tools}/bin/.tpm2-wrapped
|
||||
mv $out/bin/{.tpm2-wrapped,tpm2}
|
||||
@@ -103,13 +106,15 @@ in
|
||||
systemd = {
|
||||
extraBin = lib.mkIf systemd.enable {
|
||||
clevis = "${cfg.package}/bin/clevis";
|
||||
curl = "${pkgs.curl}/bin/curl";
|
||||
};
|
||||
|
||||
storePaths = lib.mkIf systemd.enable [
|
||||
cfg.package
|
||||
"${pkgs.jose}/bin/jose"
|
||||
"${pkgs.curl}/bin/curl"
|
||||
"${pkgs.cryptsetup}/bin/cryptsetup"
|
||||
"${pkgs.gnused}/bin/sed"
|
||||
"${pkgs.gnugrep}/bin/grep"
|
||||
"${pkgs.tpm2-tools}/bin/tpm2_createprimary"
|
||||
"${pkgs.tpm2-tools}/bin/tpm2_flushcontext"
|
||||
"${pkgs.tpm2-tools}/bin/tpm2_load"
|
||||
|
||||
Reference in New Issue
Block a user