Add tor-relay config
This commit is contained in:
		
					parent
					
						
							
								7fabcb4c7e
							
						
					
				
			
			
				commit
				
					
						682af9276c
					
				
			
		
					 5 changed files with 39 additions and 9 deletions
				
			
		
							
								
								
									
										12
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
					@ -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
 | 
				
			||||||
 | 
					        ];
 | 
				
			||||||
 | 
					      };
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,4 +1,4 @@
 | 
				
			||||||
{ config, pkgs, ... }:
 | 
					{ ... }:
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  boot.loader.grub = {
 | 
					  boot.loader.grub = {
 | 
				
			||||||
    enable = true;
 | 
					    enable = true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										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;
 | 
					      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;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue