From 8e9de78b5bcbe4d510f2b7a5576bdaa58619370c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 26 May 2018 21:16:21 +0200 Subject: ... --- odin.nix | 16 +++++++++++----- 1 file 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 @@ extraOptions = [ "--interval=600" "-A" "/var/log/smart/" "-s" "/var/lib/smart/" ]; }; - systemd.services.iperf = { + systemd.services."iperf-tcp" = { wantedBy = [ "multi-user.target" ]; - path = with pkgs; [ iperf2 ]; - script = '' - exec -- iperf -sV - ''; + serviceConfig = { + ExecStart = "${pkgs.iperf2}/bin/iperf -sV"; + }; + }; + + systemd.services."iperf-udp" = { + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + ExecStart = "${pkgs.iperf2}/bin/iperf -suV"; + }; }; systemd.status-mail = { -- cgit v1.2.3