Add iperf host
This commit is contained in:
		
					parent
					
						
							
								fc50e78610
							
						
					
				
			
			
				commit
				
					
						2673483143
					
				
			
		
					 4 changed files with 40 additions and 9 deletions
				
			
		
							
								
								
									
										21
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										21
									
								
								flake.nix
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -9,6 +9,15 @@
 | 
			
		|||
 | 
			
		||||
  outputs = { self, nixpkgs, nixos-generators, ... }: {
 | 
			
		||||
    hosts = {
 | 
			
		||||
      hydra = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
      iperf = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
      jackett = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
      nitter = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
| 
						 | 
				
			
			@ -18,12 +27,6 @@
 | 
			
		|||
      tor-relay = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
      jackett = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
      hydra = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
      web-public-2 = {
 | 
			
		||||
        site = "vs";
 | 
			
		||||
      };
 | 
			
		||||
| 
						 | 
				
			
			@ -56,9 +59,9 @@
 | 
			
		|||
      in nixpkgs.lib.nixosSystem {
 | 
			
		||||
        inherit system;
 | 
			
		||||
        modules = [
 | 
			
		||||
        ./configuration/common
 | 
			
		||||
        ./configuration/proxmox-vm
 | 
			
		||||
        ./hosts/nitter
 | 
			
		||||
          ./configuration/common
 | 
			
		||||
          ./configuration/proxmox-vm
 | 
			
		||||
          ./hosts/nitter
 | 
			
		||||
        ];
 | 
			
		||||
      };
 | 
			
		||||
    };
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								hosts/iperf/configuration.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								hosts/iperf/configuration.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,14 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  boot.loader.grub = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    device = "/dev/vda";
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  networking = {
 | 
			
		||||
    hostName = "iperf";
 | 
			
		||||
    firewall.enable = false;
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  system.stateVersion = "23.05";
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								hosts/iperf/default.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								hosts/iperf/default.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  imports = [
 | 
			
		||||
    ./configuration.nix
 | 
			
		||||
    ./iperf.nix
 | 
			
		||||
  ];
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								hosts/iperf/iperf.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								hosts/iperf/iperf.nix
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,7 @@
 | 
			
		|||
{ ... }:
 | 
			
		||||
{
 | 
			
		||||
  services.iperf3 = {
 | 
			
		||||
    enable = true;
 | 
			
		||||
    openFirewall = true;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue