From 26734831434e224cfa6f9b9a881f6060fcdfe7cc Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 26 Jul 2023 01:49:39 +0200 Subject: [PATCH] Add iperf host --- flake.nix | 21 ++++++++++++--------- hosts/iperf/configuration.nix | 14 ++++++++++++++ hosts/iperf/default.nix | 7 +++++++ hosts/iperf/iperf.nix | 7 +++++++ 4 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 hosts/iperf/configuration.nix create mode 100644 hosts/iperf/default.nix create mode 100644 hosts/iperf/iperf.nix diff --git a/flake.nix b/flake.nix index 3fab58a..4b4fdc0 100644 --- a/flake.nix +++ b/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 ]; }; }; diff --git a/hosts/iperf/configuration.nix b/hosts/iperf/configuration.nix new file mode 100644 index 0000000..243344b --- /dev/null +++ b/hosts/iperf/configuration.nix @@ -0,0 +1,14 @@ +{ ... }: +{ + boot.loader.grub = { + enable = true; + device = "/dev/vda"; + }; + + networking = { + hostName = "iperf"; + firewall.enable = false; + }; + + system.stateVersion = "23.05"; +} diff --git a/hosts/iperf/default.nix b/hosts/iperf/default.nix new file mode 100644 index 0000000..2cb1ecd --- /dev/null +++ b/hosts/iperf/default.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + imports = [ + ./configuration.nix + ./iperf.nix + ]; +} diff --git a/hosts/iperf/iperf.nix b/hosts/iperf/iperf.nix new file mode 100644 index 0000000..ae6cd90 --- /dev/null +++ b/hosts/iperf/iperf.nix @@ -0,0 +1,7 @@ +{ ... }: +{ + services.iperf3 = { + enable = true; + openFirewall = true; + }; +}