1{ self, ... }:
2let
3 d = self.lib.data.services.scrutiny;
4in
5{
6 services.scrutiny = {
7 enable = true;
8 influxdb.enable = true;
9 settings = {
10 web = {
11 listen = {
12 inherit (d) port;
13 };
14 influxdb.tls.insecure_skip_verify = true;
15 };
16 };
17 collector = {
18 enable = true;
19 settings = {
20 api.endpoint = "http://localhost:${toString d.port}";
21 devices = [
22 {
23 device = "/dev/sdb";
24 commands = {
25 metrics_smart_args = "-xv 188,raw16 --xall --json -T permissive";
26 };
27 }
28 ];
29 };
30 };
31 };
32}