about summary refs log tree commit diff
path: root/modules/server/tor/default.nix
blob: f0447a3d1c4a86d058caa5bc723626327e19788f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ lib, config, ... }:

{
  networking.firewall.allowedTCPPorts = [ 143 ];

  services.tor.enable = true;

  services.tor.relay.accountingMax =
    lib.mkDefault (throw "Set tor accountingMax!!");

  services.tor.relay.accountingStart =
    lib.mkDefault (throw "Set tor accountingStart!!");

  services.tor.relay.enable = true;
  services.tor.relay.contactInfo = "hi@alyssa.is";
  services.tor.relay.nickname = lib.mkDefault config.networking.hostName;
  services.tor.relay.role = "relay";
  services.tor.settings.ORPort = [ 143 ];
}