From 45ffefc3285aea6be8f7144fffac7f00d42f2d0c Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sat, 18 Jun 2022 03:38:04 +0100 Subject: [PATCH] nixos/colony: Log smartd data for Netdata --- nixos/boxes/colony/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/boxes/colony/default.nix b/nixos/boxes/colony/default.nix index 92f4b42..0b3175b 100644 --- a/nixos/boxes/colony/default.nix +++ b/nixos/boxes/colony/default.nix @@ -82,6 +82,7 @@ smartd = { enable = true; autodetect = true; + extraOptions = [ "-A /var/log/smartd/" "--interval=600" ]; }; }; @@ -100,6 +101,10 @@ "serial-getty@ttyS1".enable = true; }; + tmpfiles.rules = [ + "d /var/log/smartd 0755 root root" + ]; + network = { links = { "10-wan0" = {