summaryrefslogtreecommitdiff
path: root/modules/networking/i2p.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-11 03:34:29 -0700
committerFuwn <[email protected]>2024-09-11 03:34:39 -0700
commitb84cc156236ecd4fbe0c9d458e46078df625cb47 (patch)
tree18d5355ef83ebe992074a5cbff14f393b8481b67 /modules/networking/i2p.nix
parentBump: i2p (diff)
downloadnixos-config-b84cc156236ecd4fbe0c9d458e46078df625cb47.tar.xz
nixos-config-b84cc156236ecd4fbe0c9d458e46078df625cb47.zip
Bump: move networking module
Diffstat (limited to 'modules/networking/i2p.nix')
-rw-r--r--modules/networking/i2p.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/networking/i2p.nix b/modules/networking/i2p.nix
new file mode 100644
index 0000000..d94b5e4
--- /dev/null
+++ b/modules/networking/i2p.nix
@@ -0,0 +1,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"
+ ];
+ };
+ };
+ };
+}