{ config, lib, ... }: let d = lib.py.data.services.scrutiny; in { services.scrutiny = { enable = true; influxdb.enable = true; settings = { web = { listen = { port = d.port; }; influxdb.tls.insecure_skip_verify = true; }; }; collector = { enable = true; settings = { api.endpoint = "http://localhost:${toString d.port}"; devices = [ { device = "/dev/sdb"; commands = { metrics_smart_args = "-xv 188,raw16 --xall --json -T permissive"; }; } ]; }; }; }; }