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; + }; +}