From 03ca97b6c10a8a61d49ebc05109f786e98354305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Fri, 22 Jul 2022 22:38:32 +0100 Subject: [PATCH] extract syncthing relay settings out --- nixos/boxes/vpsfree1/default.nix | 8 +------- nixos/boxes/vpsfree1/syncthing-relay.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 7 deletions(-) create mode 100644 nixos/boxes/vpsfree1/syncthing-relay.nix 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 + }; +}