add syncthing listen addresses

This commit is contained in:
Cyryl Płotnicki 2022-07-22 13:18:56 +01:00
parent 4a6226a1b2
commit 2ea36eb62d

View file

@ -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"
];
};
};
};
}