summaryrefslogtreecommitdiff
path: root/modules/networking/i2p.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/networking/i2p.nix')
-rw-r--r--modules/networking/i2p.nix88
1 files changed, 60 insertions, 28 deletions
diff --git a/modules/networking/i2p.nix b/modules/networking/i2p.nix
index d94b5e4..f3fbb13 100644
--- a/modules/networking/i2p.nix
+++ b/modules/networking/i2p.nix
@@ -13,36 +13,68 @@
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";
+ services.i2pd =
+ let
+ address = "0.0.0.0";
+ in
+ {
+ inherit address;
+
+ enable = true;
+ upnp.enable = true;
+ bandwidth = 256;
+ websocket.address = address;
+ yggdrasil.address = address;
+
+ proto = {
+ bob.address = address;
+ i2pControl.address = address;
+
+ socksProxy = {
+ inherit address;
+
+ enable = true;
+ };
+
+ http = {
+ inherit address;
+
+ enable = true;
+ strictHeaders = false;
+ };
+
+ i2cp = {
+ inherit address;
+
+ enable = true;
+ };
+
+ sam = {
+ inherit address;
+
+ enable = true;
+ };
+
+ httpProxy = {
+ inherit address;
+
+ 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"
- ];
- };
+ 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"
+ ];
+ };
};
};
}