28 lines
631 B
Nix
28 lines
631 B
Nix
|
|
{ ... }:
|
||
|
|
{
|
||
|
|
services.tor = {
|
||
|
|
enable = true;
|
||
|
|
client.enable = false;
|
||
|
|
relay = {
|
||
|
|
enable = true;
|
||
|
|
role = "relay";
|
||
|
|
};
|
||
|
|
settings = {
|
||
|
|
Nickname = "alisceondotcom";
|
||
|
|
ORPort = 24601;
|
||
|
|
DataDirectory = "/var/lib/tor";
|
||
|
|
ExitRelay = false;
|
||
|
|
ExitPolicy = [ "reject *:*" ];
|
||
|
|
RelayBandwidthRate = "25 MBytes";
|
||
|
|
RelayBandwidthBurst = "25 MBytes";
|
||
|
|
BandwidthRate = "25 MBytes";
|
||
|
|
BandwidthBurst = "25 MBytes";
|
||
|
|
AccountingStart = "month 1 00:00";
|
||
|
|
AccountingMax = "8500 GBytes";
|
||
|
|
DirCache = true;
|
||
|
|
AvoidDiskWrites = 1;
|
||
|
|
Sandbox = false;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|