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
];
};
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 = {
enable = true;

View file

@ -1,12 +1,23 @@
{ config, pkgs, ... }:
{ ... }:
{
imports = [
./hardware-configuration.nix
./tor.nix
];
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 = false;
};

View file

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

View file

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