Add tor-relay config

This commit is contained in:
yuri 2023-07-15 23:29:19 +02:00
parent 35b2ba8388
commit 616d7543ca
5 changed files with 39 additions and 9 deletions

View file

@ -34,6 +34,18 @@
./hosts/coturn ./hosts/coturn
]; ];
}; };
tor-relay = { name, nodes, pkgs, ...}: {
deployment = {
targetHost = "tor-relay.vs.grzb.de";
targetUser = "colmena-deploy";
};
imports = [
./configuration/common
./configuration/proxmox-vm
./hosts/tor-relay
];
};
}; };
}; };
} }

View file

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { ... }:
{ {
boot.loader.grub = { boot.loader.grub = {
enable = true; enable = true;

View file

@ -1,12 +1,23 @@
{ config, pkgs, ... }: { ... }:
{ {
imports = [ boot.loader.grub = {
./hardware-configuration.nix enable = true;
./tor.nix device = "/dev/vda";
]; };
networking = { networking = {
interfaces = {
"enp6s18".ipv6.addresses = [{
address = "2001:470:5429::B3";
prefixLength = 64;
}];
};
defaultGateway6 = {
address = "2001:470:5429::1";
interface = "enp6s18";
};
hostName = "tor-relay"; hostName = "tor-relay";
firewall.enable = false; firewall.enable = false;
}; };

View file

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

View file

@ -10,8 +10,8 @@
SOCKSPort = 0; SOCKSPort = 0;
ControlSocket = null; ControlSocket = null;
ContactInfo = "admin@grzb.de"; ContactInfo = "admin@grzb.de";
RelayBandwidthRate = "70 MBits"; RelayBandwidthRate = "40 MBits";
RelayBandwidthBurst = "150 Mbits"; RelayBandwidthBurst = "50 Mbits";
DirPort = 9030; DirPort = 9030;
}; };
}; };