tsuki: move grafana config into nondeprecated attrset

This commit is contained in:
Oystein Kristoffer Tveit 2023-01-16 17:09:06 +01:00
parent 3820be9ef9
commit b5030a7c06
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 12 additions and 7 deletions

View File

@ -8,15 +8,20 @@
services.grafana = { services.grafana = {
enable = true; enable = true;
domain = "log.nani.wtf";
port = secrets.ports.grafana;
addr = "0.0.0.0";
dataDir = "${config.machineVars.dataDrives.default}/var/grafana"; dataDir = "${config.machineVars.dataDrives.default}/var/grafana";
settings = {
server = {
domain = "log.nani.wtf";
http_addr = "0.0.0.0";
http_port = secrets.ports.grafana;
};
database = { database = {
type = "postgres"; type = "postgres";
user = "grafana"; user = "grafana";
host = "localhost:${toString secrets.ports.postgres}"; host = "localhost:${toString secrets.ports.postgres}";
}; };
}; };
};
} }