feat: setup the password for grafana

This commit is contained in:
silver 2024-05-23 02:39:36 +01:00
parent 40e4fe5ac4
commit 23f77caef6
Signed by: silver
GPG key ID: 54E2C71918E93B74
2 changed files with 17 additions and 0 deletions

View file

@ -54,12 +54,16 @@ in {
"${name}.skynet.ie"
];
age.secrets.grafana_pw.file = ../secrets/grafana/pw.age;
services.grafana = {
enable = true;
domain = "${name}.skynet.ie";
port = port;
addr = cfg.host.ip;
settings.security.admin_password = "$__file{${config.age.secrets.grafana_pw.path}}";
provision = {
enable = true;
datasources.settings.datasources = [