This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/pink/services/i2pd.nix

42 lines
801 B
Nix
Raw Normal View History

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