improvement

This commit is contained in:
John Lancaster
2026-04-30 16:36:38 -05:00
parent f0eba76e49
commit 68483c0231
+7 -10
View File
@@ -351,14 +351,7 @@ in
}; };
flake.wrappers = { flake.wrappers = {
mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }: mtlsCheck = inputs.wrappers.lib.wrapModule ({ config, lib, wlib, ... }: {
let
singleOutputOpenSSL = config.pkgs.symlinkJoin {
name = "openssl";
paths = [ config.pkgs.openssl.bin config.pkgs.openssl.man ];
meta.mainProgram = "openssl";
};
in {
options = { options = {
bundleFile = lib.mkOption { bundleFile = lib.mkOption {
description = "String path for the mTLS key bundle"; description = "String path for the mTLS key bundle";
@@ -368,8 +361,12 @@ in
config = { config = {
binName = "mtls-check"; binName = "mtls-check";
package = singleOutputOpenSSL; # This pattern is necessary to wrap packages like openssl that provide more than one binary
exePath = "${singleOutputOpenSSL}/bin/openssl"; package = config.pkgs.symlinkJoin {
name = "openssl";
paths = [ config.pkgs.openssl.bin config.pkgs.openssl.man ];
meta.mainProgram = "openssl";
};
args = [ args = [
"x509" "x509"
"-noout" "-noout"