From 31ab954db3dbc0a07e7b58c59da003088ee7943d Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sat, 29 Jun 2024 01:43:37 +0300 Subject: 2024-06-29 --- modules/syncthing.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/syncthing.nix') diff --git a/modules/syncthing.nix b/modules/syncthing.nix index 74d4afe..e261a12 100644 --- a/modules/syncthing.nix +++ b/modules/syncthing.nix @@ -62,17 +62,18 @@ in settings = { options = { + announceLANAddresses = false; autoUpgradeIntervalH = 0; crashReportingEnabled = false; globalAnnounceEnabled = false; relaysEnabled = false; - setLowPriority = this.isHeadless; + setLowPriority = this.isHeadful; stunKeepaliveStartS = 0; urAccepted = -1; }; gui = { - insecureAdminAccess = true; + insecureAdminAccess = this.isHeadless; insecureSkipHostcheck = this.isHeadless; }; @@ -80,9 +81,12 @@ in name: attr: mkIf (attr.syncthing.id != null && hasAttr "wireguard" attr) { inherit (attr.syncthing) id; - compression = "metadata"; + compression = "always"; introducer = false; - address = "tcp://${name}.${config.networking.domain}:22000"; + addresses = [ + "quic://${name}.${config.networking.domain}:22000" + "tcp://${name}.${config.networking.domain}:22000" + ]; autoAcceptFolders = true; untrusted = false; } -- cgit v1.2.3