summaryrefslogtreecommitdiff
path: root/odin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'odin.nix')
-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 ];