m 2 opentracker: init

This commit is contained in:
makefu 2016-08-22 18:39:50 +02:00
parent 1604995481
commit 0bccd00078
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

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