summaryrefslogtreecommitdiff
path: root/modules/software/networking/i2p.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-11 00:52:32 -0700
committerFuwn <[email protected]>2024-09-11 00:52:32 -0700
commitb6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c (patch)
tree5e61c8151b6cde865405d61fb9c1f7bd65c9f662 /modules/software/networking/i2p.nix
parentBump: swift (diff)
downloadnixos-config-b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c.tar.xz
nixos-config-b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c.zip
Bump: i2p
Diffstat (limited to 'modules/software/networking/i2p.nix')
-rw-r--r--modules/software/networking/i2p.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/software/networking/i2p.nix b/modules/software/networking/i2p.nix
new file mode 100644
index 0000000..19077ba
--- /dev/null
+++ b/modules/software/networking/i2p.nix
@@ -0,0 +1,38 @@
+{
+ # 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";
+
+ proto = {
+ http.enable = true;
+ socksProxy.enable = true;
+ httpProxy.enable = true;
+ sam.enable = true;
+ i2cp.enable = true;
+ };
+
+ 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"
+ ];
+ };
+ };
+ };
+}