os/mixin/i2p: init

This commit is contained in:
Lorenz Leutgeb
2026-05-21 09:34:28 +02:00
committed by Lorenz Leutgeb
parent 73f669afa1
commit 3de7f04748
2 changed files with 46 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
{
config,
lib,
...
}: let
secret = "i2pd/radicle";
in {
sops.secrets.${secret} = {
format = "binary";
owner = "i2pd";
group = "i2pd";
path = "/var/lib/i2pd/radicle-keys.dat";
};
services.i2pd = {
enable = true;
enableIPv6 = true;
proto = {
socksProxy.enable = true;
http.enable = true;
};
inTunnels = {
http = let
port = 80;
in {
inherit port;
enable = true;
inPort = port;
type = "http";
};
radicle = let
port = 58776;
in {
inherit port;
enable = true;
inPort = port;
type = "server";
};
};
};
}
+4
View File
@@ -34,6 +34,10 @@ in {
db.journalMode = "wal";
workers = 32;
relay = "always";
i2p = lib.mkIf (config.services.i2pd.enable && config.services.i2pd.proto.socksProxy.enable) {
mode = "proxy";
address = "127.0.0.1:4447";
};
onion = lib.mkIf config.services.tor.enable {
mode = "proxy";
address = "127.0.0.1:9050";