ip2d g add -p! (actually works (no way (not possible)))

This commit is contained in:
jacekpoz 2023-07-30 01:20:24 +02:00
parent 3b5e0bc86a
commit 6e9109316c
2 changed files with 31 additions and 0 deletions

View file

@ -4,6 +4,7 @@ _: {
./configuration.nix
./grafana.nix
./hardware-configuration.nix
./i2pd.nix
#./wireguard.nix
];
}

30
hosts/chmura/i2pd.nix Normal file
View file

@ -0,0 +1,30 @@
{
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 ];
}