{ pkgs, lib, config, ... }: {
services.i2pd = {
enable = true;
port = 9732;
enableIPv6 = true;
floodfill = true;
};
#i2pcontrol
services.i2pd.proto.i2pControl = {
port = 7659;
name = "i2pcontrol";
address = "0.0.0.0";
services.i2pd.proto.http = {
# todo proxy
# todo privacy respecting services
# todo reseed export
# need to create a nginx proxy that proxies the reseed file
services.prometheus.exporters.i2pd = {
port = 3321;
openFirewall = true;
routerAddress = "https://127.0.0.1:${toString config.services.i2pd.proto.i2pControl.port}";
routerPassword = "itoopie";
}