summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odin.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/odin.nix b/odin.nix
index f7690648..4f938cb0 100644
--- a/odin.nix
+++ b/odin.nix
@@ -386,12 +386,18 @@
386 extraOptions = [ "--interval=600" "-A" "/var/log/smart/" "-s" "/var/lib/smart/" ]; 386 extraOptions = [ "--interval=600" "-A" "/var/log/smart/" "-s" "/var/lib/smart/" ];
387 }; 387 };
388 388
389 systemd.services.iperf = { 389 systemd.services."iperf-tcp" = {
390 wantedBy = [ "multi-user.target" ]; 390 wantedBy = [ "multi-user.target" ];
391 path = with pkgs; [ iperf2 ]; 391 serviceConfig = {
392 script = '' 392 ExecStart = "${pkgs.iperf2}/bin/iperf -sV";
393 exec -- iperf -sV 393 };
394 ''; 394 };
395
396 systemd.services."iperf-udp" = {
397 wantedBy = [ "multi-user.target" ];
398 serviceConfig = {
399 ExecStart = "${pkgs.iperf2}/bin/iperf -suV";
400 };
395 }; 401 };
396 402
397 systemd.status-mail = { 403 systemd.status-mail = {