summaryrefslogtreecommitdiffstats
path: root/makefu
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2016-08-22 18:39:50 +0200
committermakefu <github@syntax-fehler.de>2016-08-22 18:39:50 +0200
commit0bccd0007853f01e467746258fe2c8bf7f8d907c (patch)
treec9afa29738e2415466a4b3e3b55c06f6841c6e2a /makefu
parent16049954816bc2484c15ee6dd889e55be5ba6253 (diff)
m 2 opentracker: init
Diffstat (limited to 'makefu')
-rw-r--r--makefu/2configs/opentracker.nix16
1 files changed, 16 insertions, 0 deletions
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 ];
+
+}