Initial commit
This commit is contained in:
commit
6f88b92591
20 changed files with 395 additions and 0 deletions
15
hosts/tor-relay/configuration.nix
Normal file
15
hosts/tor-relay/configuration.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./tor.nix
|
||||
];
|
||||
|
||||
networking = {
|
||||
hostName = "tor-relay";
|
||||
firewall.enable = false;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
18
hosts/tor-relay/tor.nix
Normal file
18
hosts/tor-relay/tor.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.tor = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
Nickname = "vsm";
|
||||
ORPort = 9001;
|
||||
ExitRelay = false;
|
||||
SOCKSPort = 0;
|
||||
ControlSocket = null;
|
||||
ContactInfo = "admin@grzb.de";
|
||||
RelayBandwidthRate = "70 MBits";
|
||||
RelayBandwidthBurst = "150 Mbits";
|
||||
DirPort = 9030;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue