diff --git a/testing/infra/machines/nix/configuration.nix b/testing/infra/machines/nix/configuration.nix index adf9d912..ef5c7f94 100644 --- a/testing/infra/machines/nix/configuration.nix +++ b/testing/infra/machines/nix/configuration.nix @@ -39,6 +39,28 @@ }; }; + systemd.services.test-client = { + enable = true; + wantedBy = [ ]; + after = [ ]; + description = "Start test-client"; + serviceConfig = { + Type = "exec"; + ExecStart = "source /home/test/sink_ip; /run/current-system/sw/bin/iperf3 -P 5 -t 36000 -c $SINK_IP"; + }; + }; + + systemd.services.test-server = { + enable = true; + wantedBy = [ ]; + after = [ ]; + description = "Start test-server"; + serviceConfig = { + Type = "exec"; + ExecStart = "/run/current-system/sw/bin/iperf3 -s"; + }; + }; + environment.systemPackages = with pkgs; [ python3 bashInteractive_5