niksos/hosts/chmura/services/i2pd.nix
2024-07-16 00:26:09 +02:00

26 lines
668 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 ];
}