summaryrefslogtreecommitdiff
path: root/modules/software/networking/i2p.nix
blob: d94b5e481efb7ae45c2af792c449bc6a95cac3bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  # https://voidcruiser.nl/rambles/i2p-on-nixos/
  containers.i2pd = {
    autoStart = true;

    config = {
      system.stateVersion = "24.05";

      networking.firewall.allowedTCPPorts = [
        7656
        7070
        4447
        4444
      ];

      services.i2pd = {
        enable = true;
        address = "0.0.0.0";
        upnp.enable = true;
        bandwidth = 256;

        proto = {
          http.enable = true;
          socksProxy.enable = true;
          sam.enable = true;
          i2cp.enable = true;

          httpProxy = {
            enable = true;
            # outproxy = "http://false.i2p";
            # outproxy = "http://purokishi.i2p:4444";
            # outproxy = "http://outproxy.acetone.i2p:3128";
            outproxy = "http://exit.stormycloud.i2p:4444";
            # outproxy = "http://outproxy.bandura.i2p:4444";
          };
        };

        addressbook.subscriptions = [
          "http://inr.i2p/export/alive-hosts.txt"
          "http://i2p-projekt.i2p/hosts.txt"
          "http://stats.i2p/cgi-bin/newhosts.txt"
          "http://reg.i2p/export/hosts.txt"
          "http://notbob.i2p/hosts.txt"
        ];
      };
    };
  };
}