aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/configuration/server/tor/default.nix
blob: cbd4d8e30325b9bc2eaf5808537bc2605cfe989d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, ... }:

{
  networking.firewall.allowedTCPPorts = [ 143 ];
  
  services.tor = {
    enable = true;
    relay = {
      enable = true;
      role = "relay";
      nickname = "hyperion";
      contactInfo = "kookie@spacekookie.de";
      port = 143;
    };
    extraConfig = ''
      ORPort [2a01:4f9:2b:1148::]:143
    '';
  };
}