homelab/machines/monitor/influxdb.nix
plasmagoat 5feb74d56d
All checks were successful
Hello World / test (push) Successful in 4s
colmena initial implementation for sandbox and monitor
2025-07-06 21:25:57 +02:00

35 lines
763 B
Nix

{
config,
pkgs,
...
}: let
influxdbPassword = config.sops.secrets."influxdb/password".path;
influxdbToken = config.sops.secrets."influxdb/token".path;
in {
sops.secrets."influxdb/password" = {
sopsFile = ../../secrets/secrets.yaml;
owner = "influxdb2";
};
sops.secrets."influxdb/token" = {
sopsFile = ../../secrets/secrets.yaml;
owner = "influxdb2";
};
networking.firewall.allowedTCPPorts = [8086];
services.influxdb2 = {
enable = true;
settings = {
};
provision = {
enable = true;
initialSetup = {
username = "plasmagoat";
passwordFile = influxdbPassword;
tokenFile = influxdbToken;
organization = "procopius";
bucket = "proxmox";
};
};
};
}