36 lines
715 B
Nix
36 lines
715 B
Nix
{ pkgs, lib, config, ... }: {
|
|
|
|
services.i2pd = {
|
|
enable = false;
|
|
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;
|
|
};
|
|
|
|
# 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 = false;
|
|
port = 3321;
|
|
openFirewall = true;
|
|
routerAddress = "https://127.0.0.1:${toString config.services.i2pd.proto.i2pControl.port}";
|
|
routerPassword = "itoopie";
|
|
};
|
|
}
|