summaryrefslogtreecommitdiffstats
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
commit444f3f43cc65bc1ade0851475c7738ef385e613c (patch)
tree7c965b1c016fea4d902d8b57614c18ca29ceadf9
parentaaecf090501e487c8ddbb00288c931b11db76966 (diff)
m 2 opentracker: init
-rw-r--r--2configs/opentracker.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/2configs/opentracker.nix b/2configs/opentracker.nix
new file mode 100644
index 000000000..f98105625
--- /dev/null
+++ b/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 ];
+
+}