diff --git a/nixos/boxes/vpsfree1/default.nix b/nixos/boxes/vpsfree1/default.nix index e9eb1d16..31606838 100644 --- a/nixos/boxes/vpsfree1/default.nix +++ b/nixos/boxes/vpsfree1/default.nix @@ -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 ''; diff --git a/nixos/boxes/vpsfree1/syncthing-relay.nix b/nixos/boxes/vpsfree1/syncthing-relay.nix new file mode 100644 index 00000000..d9f3228c --- /dev/null +++ b/nixos/boxes/vpsfree1/syncthing-relay.nix @@ -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 + }; +}