summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-26 21:16:21 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-26 21:16:21 +0200
commit8e9de78b5bcbe4d510f2b7a5576bdaa58619370c (patch)
treebd4f3208d7c02df562a6ab4200ce6a0ba5b9f317
parent774a9739db10b81e0aac6fd300dd58305f12f2f0 (diff)
downloadnixos-8e9de78b5bcbe4d510f2b7a5576bdaa58619370c.tar
nixos-8e9de78b5bcbe4d510f2b7a5576bdaa58619370c.tar.gz
nixos-8e9de78b5bcbe4d510f2b7a5576bdaa58619370c.tar.bz2
nixos-8e9de78b5bcbe4d510f2b7a5576bdaa58619370c.tar.xz
nixos-8e9de78b5bcbe4d510f2b7a5576bdaa58619370c.zip
...
-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 = {