We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83add3d commit df8fbb4Copy full SHA for df8fbb4
1 file changed
flake.nix
@@ -78,7 +78,8 @@
78
};
79
80
key = mkOption {
81
- type = types.str;
+ type = types.nullOr types.str;
82
+ default = null;
83
description = "Obfuscation key (must match on both sides)";
84
example = "your_secret_key";
85
@@ -202,7 +203,7 @@
202
203
}
204
{
205
assertion = all (inst:
- inst.enable -> (inst.key != "" || inst.keyFile != null)
206
+ inst.enable -> (inst.key != null || inst.keyFile != null)
207
) (attrValues cfg.instances);
208
message = "Each enabled wg-obfuscator instance must have either 'key' or 'keyFile' set";
209
@@ -263,7 +264,7 @@
263
264
max-clients = ${toString inst.maxClients}
265
idle-timeout = ${toString inst.idleTimeout}
266
max-dummy = ${toString inst.maxDummy}
- '') (attrValues instances)
267
+ '') instances
268
)}
269
EOF
270
0 commit comments