nix-infra/config/hosts/tor-relay/configuration.nix

30 lines
490 B
Nix
Raw Normal View History

2023-07-15 23:29:19 +02:00
{ ... }:
2023-07-10 15:30:51 +02:00
{
2023-07-15 23:29:19 +02:00
boot.loader.grub = {
enable = true;
device = "/dev/vda";
};
2023-07-10 15:30:51 +02:00
networking = {
2023-07-15 23:29:19 +02:00
interfaces = {
"enp6s18".ipv6.addresses = [{
address = "2001:470:5429::B3";
prefixLength = 64;
}];
};
defaultGateway6 = {
address = "2001:470:5429::1";
interface = "enp6s18";
};
2023-07-10 15:30:51 +02:00
hostName = "tor-relay";
firewall = {
enable = true;
allowedTCPPorts = [ 9001 9030 ];
};
2023-07-10 15:30:51 +02:00
};
system.stateVersion = "23.05";
}