Add tor-relay config
This commit is contained in:
		
					parent
					
						
							
								35b2ba8388
							
						
					
				
			
			
				commit
				
					
						616d7543ca
					
				
			
		
					 5 changed files with 39 additions and 9 deletions
				
			
		
							
								
								
									
										12
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
{ config, pkgs, ... }:
 | 
			
		||||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  boot.loader.grub = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										7
									
								
								hosts/tor-relay/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								hosts/tor-relay/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./configuration.nix
 | 
			
		||||
    ./tor.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
    };
 | 
			
		||||
  };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue