2024-11-20 05:46:39 +01:00
|
|
|
{ ... }:
|
2024-11-20 05:46:39 +01:00
|
|
|
{
|
2024-11-20 05:46:39 +01:00
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/vda";
|
|
|
|
};
|
2024-11-20 05:46:39 +01:00
|
|
|
|
|
|
|
networking = {
|
2024-11-20 05:46:39 +01:00
|
|
|
interfaces = {
|
|
|
|
"enp6s18".ipv6.addresses = [{
|
|
|
|
address = "2001:470:5429::B3";
|
|
|
|
prefixLength = 64;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
defaultGateway6 = {
|
|
|
|
address = "2001:470:5429::1";
|
|
|
|
interface = "enp6s18";
|
|
|
|
};
|
|
|
|
|
2024-11-20 05:46:39 +01:00
|
|
|
hostName = "tor-relay";
|
2024-11-20 05:46:39 +01:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 9001 9030 ];
|
|
|
|
};
|
2024-11-20 05:46:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.05";
|
|
|
|
}
|