niksos/hosts/chmura/services/i2pd.nix

26 lines
671 B
Nix

_: {
services.i2pd = {
enable = true;
ifname = "enp6s0";
port = 9898;
dataDir = "/var/lib/i2pd";
bandwidth = 128;
logLevel = "warn";
proto = {
httpProxy = {
enable = true;
outproxy = "http://false.i2p";
};
};
outTunnels.irc = {
enable = true;
address = "127.0.0.1";
port = 6667;
destination = "irc.ilita.i2p";
destinationPort = 6667;
};
};
networking.firewall.allowedTCPPorts = [ 9898 4444 6667 ];
networking.firewall.allowedUDPPorts = [ 9898 4444 6667 ];
}