nixos/warpgate: configurable advertised MySQL server version

(cherry picked from commit 441b7a7035)
This commit is contained in:
Lemon Lam
2026-08-19 10:58:22 +08:00
parent 66d0e6f125
commit 2fc0f7bbdb

View File

@@ -301,6 +301,14 @@ in
default = "/var/lib/warpgate/tls.key.pem";
type = str;
};
advertised_version = mkOption {
description = ''
The server version advertised to clients during the handshake.
Warpgate can't auto-match the target's version since the target is only known after the handshake, but Warpgate's clients use it to pick a protocol dialect.
'';
default = "8.0.3-Warpgate";
type = str;
};
};
postgres = {
enable = mkOption {