From b2f8aa4b443914e16e99398191b63eab4f10ccec Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 5 Sep 2024 18:45:42 +0300 Subject: [PATCH] host/istal: add tox node --- hosts/istal/services/default.nix | 1 + hosts/istal/services/tox.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 hosts/istal/services/tox.nix diff --git a/hosts/istal/services/default.nix b/hosts/istal/services/default.nix index 06f5abe..c92e7be 100644 --- a/hosts/istal/services/default.nix +++ b/hosts/istal/services/default.nix @@ -4,5 +4,6 @@ ./wireguard ./docker-registry-proxy.nix ./nginx.nix + ./tox.nix ]; } diff --git a/hosts/istal/services/tox.nix b/hosts/istal/services/tox.nix new file mode 100644 index 0000000..e0b64a6 --- /dev/null +++ b/hosts/istal/services/tox.nix @@ -0,0 +1,18 @@ +{ ... }: + + +{ + networking.firewall = { + allowedTCPPorts = [ 33445 ]; + allowedUDPPorts = [ 33445 ]; + }; + + + services.tox-node = { + enable = true; + udpAddress = "0.0.0.0:33445"; + tcpAddresses = [ + "0.0.0.0:33445" + ]; + }; +}