From 0bccd0007853f01e467746258fe2c8bf7f8d907c Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 22 Aug 2016 18:39:50 +0200 Subject: m 2 opentracker: init --- makefu/2configs/opentracker.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 makefu/2configs/opentracker.nix (limited to 'makefu/2configs') diff --git a/makefu/2configs/opentracker.nix b/makefu/2configs/opentracker.nix new file mode 100644 index 000000000..f98105625 --- /dev/null +++ b/makefu/2configs/opentracker.nix @@ -0,0 +1,16 @@ +{pkgs, ...}: + +let + daemon-port = 16969; + cfgfile = pkgs.writeText "opentracker-cfg" '' + ''; +in { + # Opentracker does not support local IPs (10.0.0.0/8 ) + makefu.opentracker = { + enable = true; + args = "-p ${toString daemon-port} -P ${toString daemon-port}"; + }; + networking.firewall.allowedTCPPorts = [ daemon-port ]; + networking.firewall.allowedUDPPorts = [ daemon-port ]; + +} -- cgit v1.2.3