···384 description = mdDoc ''
385 Extra configuration options for Syncthing.
386 See <https://docs.syncthing.net/users/config.html>.
00000000000000000000000387 '';
388 example = {
389 options.localAnnounceEnabled = false;
···384 description = mdDoc ''
385 Extra configuration options for Syncthing.
386 See <https://docs.syncthing.net/users/config.html>.
387+ Note that this attribute set does not exactly match the documented
388+ xml format. Instead, this is the format of the json rest api. There
389+ are slight differences. For example, this xml:
390+ ```xml
391+ <options>
392+ <listenAddress>default</listenAddress>
393+ <minHomeDiskFree unit="%">1</minHomeDiskFree>
394+ </options>
395+ ```
396+ corresponds to the json:
397+ ```json
398+ {
399+ options: {
400+ listenAddresses = [
401+ "default"
402+ ];
403+ minHomeDiskFree = {
404+ unit = "%";
405+ value = 1;
406+ };
407+ };
408+ }
409+ ```
410 '';
411 example = {
412 options.localAnnounceEnabled = false;