niksos/hosts/chmura/i2pd.nix

31 lines
703 B
Nix
Raw Normal View History

{
config,
pkgs,
...
}: {
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 ];
}