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 = { services.syncthing = {
enable = true; enable = true;
user = "cyryl"; user = "cyryl";
dataDir = "/home/cyryl/.syncthing"; dataDir = "/home/cyryl/";
openDefaultPorts = true; openDefaultPorts = true;
package = package =
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".syncthing; 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"
];
};
};
}; };
} }