summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-26 21:04:52 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-26 21:04:52 +0200
commitfc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe (patch)
tree0db9cf00fe01ebbec0e84689b76eb6b54a6fc736
parent151ac3dee4f578211e8acd780b9edd9dcf13c271 (diff)
downloadnixos-fc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe.tar
nixos-fc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe.tar.gz
nixos-fc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe.tar.bz2
nixos-fc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe.tar.xz
nixos-fc2f33c440c3bbd0afd3516e32ce33c25dcdd0fe.zip
have iperf always running
-rw-r--r--odin.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/odin.nix b/odin.nix
index ca20efe7..1890fbab 100644
--- a/odin.nix
+++ b/odin.nix
@@ -386,6 +386,13 @@
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 = {
390 path = with pkgs; [ iperf2 ];
391 script = ''
392 exec -- iperf -sV
393 '';
394 };
395
389 systemd.status-mail = { 396 systemd.status-mail = {
390 recipient = "root@odin.asgard.yggdrasil"; 397 recipient = "root@odin.asgard.yggdrasil";
391 onFailure = [ "nixos-upgrade" 398 onFailure = [ "nixos-upgrade"
@@ -395,7 +402,7 @@
395 }; 402 };
396 403
397 system.autoUpgrade.enable = true; 404 system.autoUpgrade.enable = true;
398 system.stateVersion = "18.09"; 405 system.nixos.stateVersion = "18.09";
399 406
400 systemd.services."nixos-upgrade" = { 407 systemd.services."nixos-upgrade" = {
401 path = with pkgs; [ git ]; 408 path = with pkgs; [ git ];