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
];
time.timeZone = "America/Chicago";
virtualisation.docker.enable = true;
services.vscode-server.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 = {
enable = true;
environmentFiles = [ ./telegraf.env ];
environmentFiles = [ "${envFile}" ];
extraConfig = {
agent = {
interval = "10s";
@@ -30,10 +40,10 @@
};
outputs = {
influxdb_v2 = {
urls = ["http://panoptes.john-stream.com:8086"];
urls = ["${influxURL}"];
token = "$INFLUX_WRITE_TOKEN";
organization = "homelab";
bucket = "docker";
organization = "${organization}";
bucket = "${bucket}";
};
};
};