Add iperf host

This commit is contained in:
yuri 2023-07-26 01:49:39 +02:00
parent fc50e78610
commit 2673483143
4 changed files with 40 additions and 9 deletions

View file

@ -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
];
};
};

View 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
View file

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

7
hosts/iperf/iperf.nix Normal file
View file

@ -0,0 +1,7 @@
{ ... }:
{
services.iperf3 = {
enable = true;
openFirewall = true;
};
}