Setup mail server and restructure some things

This commit is contained in:
fi 2023-09-14 14:43:49 +02:00
parent 4c382e629d
commit ba93d164cf
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
90 changed files with 512 additions and 66 deletions

View 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";
}

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./configuration.nix
./tor.nix
];
}

View 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";
};
};
}