diff options
author | makefu <github@syntax-fehler.de> | 2016-08-22 18:39:50 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-08-22 18:39:50 +0200 |
commit | 0bccd0007853f01e467746258fe2c8bf7f8d907c (patch) | |
tree | c9afa29738e2415466a4b3e3b55c06f6841c6e2a /makefu/2configs | |
parent | 16049954816bc2484c15ee6dd889e55be5ba6253 (diff) |
m 2 opentracker: init
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/opentracker.nix | 16 |
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 ]; + +} |