- network: add tor relay + snowflake proxy - email: regex alias for admin - search: enable some additional engines
This commit is contained in:
parent
f9a39222be
commit
0fefd6137a
10 changed files with 128 additions and 47 deletions
44
config/network.nix
Normal file
44
config/network.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{config, ...}: let
|
||||
owner = config.customOps.owner;
|
||||
domain = config.customOps.domain.fqdn;
|
||||
in {
|
||||
networking.hostName = "adonis";
|
||||
networking.firewall.logRefusedPackets = true;
|
||||
|
||||
services.tor = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
enableGeoIP = false;
|
||||
torsocks.enable = true;
|
||||
client.enable = true;
|
||||
|
||||
relay = {
|
||||
enable = true;
|
||||
role = "relay";
|
||||
};
|
||||
|
||||
settings = {
|
||||
Nickname = "${owner}";
|
||||
ContactInfo = "admin.tor@${domain}";
|
||||
|
||||
ExitRelay = false;
|
||||
|
||||
MaxAdvertisedBandwidth = "100 MB";
|
||||
BandWidthRate = "100 MB";
|
||||
RelayBandwidthRate = "100 MB";
|
||||
|
||||
CookieAuthentication = true;
|
||||
AvoidDiskWrites = 1;
|
||||
HardwareAccel = 0;
|
||||
SafeLogging = 1;
|
||||
NumCPUs = 4;
|
||||
|
||||
ORPort = [9001];
|
||||
};
|
||||
};
|
||||
|
||||
services.snowflake-proxy = {
|
||||
enable = true;
|
||||
capacity = 10;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue