Compare commits

...

2 Commits

Author SHA1 Message Date
John Lancaster
a905bff8b0 converted to variables 2024-11-27 10:20:23 -06:00
John Lancaster
1702cb3828 added time zone 2024-11-27 10:20:11 -06:00
2 changed files with 16 additions and 4 deletions

View File

@@ -34,6 +34,8 @@ in
# appdaemon # appdaemon
]; ];
time.timeZone = "America/Chicago";
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
services.vscode-server.enable = true; services.vscode-server.enable = true;
services.openssh.enable = true; services.openssh.enable = true;

View File

@@ -1,8 +1,18 @@
{ ... }: { ... }:
let
influxURL = "http://panoptes.john-stream.com:8086";
organization = "homelab";
bucket = "docker";
envFile = ./telegraf.env;
in
{ {
systemd.services.telegraf.serviceConfig = {
SupplementaryGroups = [ "docker" ];
};
services.telegraf = { services.telegraf = {
enable = true; enable = true;
environmentFiles = [ ./telegraf.env ]; environmentFiles = [ "${envFile}" ];
extraConfig = { extraConfig = {
agent = { agent = {
interval = "10s"; interval = "10s";
@@ -30,10 +40,10 @@
}; };
outputs = { outputs = {
influxdb_v2 = { influxdb_v2 = {
urls = ["http://panoptes.john-stream.com:8086"]; urls = ["${influxURL}"];
token = "$INFLUX_WRITE_TOKEN"; token = "$INFLUX_WRITE_TOKEN";
organization = "homelab"; organization = "${organization}";
bucket = "docker"; bucket = "${bucket}";
}; };
}; };
}; };