From fc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 26 May 2018 21:04:52 +0200 Subject: have iperf always running --- odin.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/odin.nix b/odin.nix index ca20efe7..1890fbab 100644 --- a/odin.nix +++ b/odin.nix @@ -386,6 +386,13 @@ extraOptions = [ "--interval=600" "-A" "/var/log/smart/" "-s" "/var/lib/smart/" ]; }; + systemd.services.iperf = { + path = with pkgs; [ iperf2 ]; + script = '' + exec -- iperf -sV + ''; + }; + systemd.status-mail = { recipient = "root@odin.asgard.yggdrasil"; onFailure = [ "nixos-upgrade" @@ -395,7 +402,7 @@ }; system.autoUpgrade.enable = true; - system.stateVersion = "18.09"; + system.nixos.stateVersion = "18.09"; systemd.services."nixos-upgrade" = { path = with pkgs; [ git ]; -- cgit v1.2.3