diff options
| -rw-r--r-- | odin.nix | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -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 ]; |
