about summary refs log tree commit diff
path: root/modules/syncthing.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-06-29 01:43:37 +0300
committerAzat Bahawi <azat@bahawi.net>2024-06-29 01:43:37 +0300
commit31ab954db3dbc0a07e7b58c59da003088ee7943d (patch)
tree774b3cc777d537c33475255b4bb0eb190fefd2ba /modules/syncthing.nix
parent2024-06-27 (diff)
2024-06-29
Diffstat (limited to '')
-rw-r--r--modules/syncthing.nix12
1 files changed, 8 insertions, 4 deletions
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;
             }

Consider giving Nix/NixOS a try! <3