@@ -21,7 +21,7 @@ in {
2121 };
2222
2323 environmentFiles = mkOption {
24− type = types.nullOr (types.listOf types.path);
24+ type = types.listOf types.path;
2525 default = [];
2626 example = "/run/keys/telegraf.env";
2727 description = ''
@@ -38,17 +38,13 @@ in {
3838 description = "Extra configuration options for telegraf";
3939 type = settingsFormat.type;
4040 example = {
41− outputs = {
42− influxdb = {
43− urls = ["http://localhost:8086"];
44− database = "telegraf";
45− };
41+ outputs.influxdb = {
42+ urls = ["http://localhost:8086"];
43+ database = "telegraf";
4644 };
47− inputs = {
48− statsd = {
49− service_address = ":8125";
50− delete_timings = true;
51− };
45+ inputs.statsd = {
46+ service_address = ":8125";
47+ delete_timings = true;
5248 };
5349 };
5450 };