From 2ea36eb62d38ae211affdff33b9ab25ec68035a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 22 Jul 2022 13:18:56 +0100 Subject: [PATCH] add syncthing listen addresses --- nixos/syncthing.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/nixos/syncthing.nix b/nixos/syncthing.nix index 5f5ce7e0..ebf2dd38 100644 --- a/nixos/syncthing.nix +++ b/nixos/syncthing.nix @@ -2,9 +2,19 @@ services.syncthing = { enable = true; user = "cyryl"; - dataDir = "/home/cyryl/.syncthing"; + dataDir = "/home/cyryl/"; openDefaultPorts = true; package = inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing; + extraOptions = { + options = { + listenAddresses = [ + "tcp://${config.networking.hostName}.raptor-carp.ts.net:22000" + "quic://${config.networking.hostName}.raptor-carp.ts.net:22000" + "relay://vpsfree1.raptor-carp.ts.net:22067/?id=BVJ54DH-VCLK4C7-SKNGOZP-36K76IE-UEEKLVF-WA5QHN6-6TK2ICW-HSDI6Q7" + "dynamic+https://relays.syncthing.net/endpoint" + ]; + }; + }; }; }