{ lib, config, ... }: { networking.firewall.allowedTCPPorts = [ 143 ]; services.tor.enable = true; services.tor.settings.AccountingMax = lib.mkDefault (throw "Set tor accountingMax!!"); services.tor.settings.AccountingStart = lib.mkDefault (throw "Set tor accountingStart!!"); services.tor.relay.enable = true; services.tor.relay.role = "relay"; services.tor.settings.ContactInfo = "hi@alyssa.is"; services.tor.settings.Nickname = lib.mkDefault config.networking.hostName; services.tor.settings.ORPort = [ 143 ]; }