m 2 opentracker: init

This commit is contained in:
makefu 2016-08-22 18:39:50 +02:00
parent aaecf09050
commit 444f3f43cc

16
2configs/opentracker.nix Normal file
View file

@ -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 ];
}