summaryrefslogtreecommitdiff
path: root/components/services/i2pd.nix
blob: 8477dc3c00463bf80dc4e3b02263a6b5af0eed49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{lib, config, ...}: {
  options.i2pd.enable = lib.mkEnableOption "An I2P router";

  config = lib.mkIf config.i2pd.enable {
    services.i2pd = {
      enable = true;
      address = "127.0.0.1";
      port = 4444;

      proto = {
        http.enable = true;
        httpProxy.enable = true;
        socksProxy.enable = true;
        sam.enable = true;
        i2cp.enable = true;
      };
    };
  };
}