summaryrefslogblamecommitdiff
path: root/components/services/i2pd.nix
blob: 8477dc3c00463bf80dc4e3b02263a6b5af0eed49 (plain) (tree)
1
2
                     
                                                           
















                                        
{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;
      };
    };
  };
}