extract syncthing relay settings out

This commit is contained in:
Cyryl Płotnicki 2022-07-22 22:38:32 +01:00
parent ad94177c24
commit 03ca97b6c1
2 changed files with 10 additions and 7 deletions

View file

@ -10,15 +10,9 @@
../../tailscale.nix
./foundryvtt.nix
./cryptpad.nix
./syncthing-relay.nix
];
networking.firewall.allowedTCPPorts = [ 22067 22070 ];
services.syncthing.relay = {
enable = true;
listenAddress = "vpsfree1.cyplo.github.beta.tailscale.net";
pools = [ "" ]; # private relay
extraOptions = [ "-debug" ];
};
systemd.extraConfig = ''
DefaultTimeoutStartSec=900s
'';

View file

@ -0,0 +1,9 @@
{ config, pkgs, inputs, lib, ... }: {
networking.firewall.allowedTCPPorts = [ 22067 22070 ];
services.syncthing.relay = {
enable = true;
listenAddress = "vpsfree1.cyplo.github.beta.tailscale.net";
pools = [ "" ]; # private relay
};
}