mtls-check wrapping openssl kinda working

This commit is contained in:
John Lancaster
2026-04-30 16:31:26 -05:00
parent 8357372b39
commit f0eba76e49
+10 -2
View File
@@ -351,7 +351,14 @@ in
};
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 = {
bundleFile = lib.mkOption {
description = "String path for the mTLS key bundle";
@@ -361,7 +368,8 @@ in
config = {
binName = "mtls-check";
package = config.pkgs.openssl;
package = singleOutputOpenSSL;
exePath = "${singleOutputOpenSSL}/bin/openssl";
args = [
"x509"
"-noout"