Setup mail server and restructure some things
This commit is contained in:
parent
4c382e629d
commit
ba93d164cf
90 changed files with 512 additions and 66 deletions
29
config/hosts/tor-relay/configuration.nix
Normal file
29
config/hosts/tor-relay/configuration.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ ... }:
|
||||
{
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
networking = {
|
||||
interfaces = {
|
||||
"enp6s18".ipv6.addresses = [{
|
||||
address = "2001:470:5429::B3";
|
||||
prefixLength = 64;
|
||||
}];
|
||||
};
|
||||
|
||||
defaultGateway6 = {
|
||||
address = "2001:470:5429::1";
|
||||
interface = "enp6s18";
|
||||
};
|
||||
|
||||
hostName = "tor-relay";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 9001 9030 ];
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
7
config/hosts/tor-relay/default.nix
Normal file
7
config/hosts/tor-relay/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
./tor.nix
|
||||
];
|
||||
}
|
20
config/hosts/tor-relay/tor.nix
Normal file
20
config/hosts/tor-relay/tor.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ ... }:
|
||||
{
|
||||
services.tor = {
|
||||
enable = true;
|
||||
|
||||
relay = {
|
||||
enable = true;
|
||||
role = "relay";
|
||||
};
|
||||
|
||||
settings = {
|
||||
Nickname = "vsm";
|
||||
ORPort = 9001;
|
||||
DirPort = 9030;
|
||||
ContactInfo = "admin@grzb.de";
|
||||
RelayBandwidthRate = "40 MBits";
|
||||
RelayBandwidthBurst = "50 Mbits";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue