grafana: will it work with config.sops

This commit is contained in:
chris 2025-03-05 21:57:09 +01:00
parent 003cd2d19e
commit efe8684da0
Signed by: c6ristian
SSH key fingerprint: SHA256:B3m+yzpaxGXSEcDBpPHfvza/DNC0wuX+CKMeGq8wgak

View file

@ -10,7 +10,7 @@
sops = {
defaultSopsFile = ../secrets/passwords.yaml;
secrets."vms/grafana/admin_password" = {
secrets."vms"."grafana"."admin_password" = {
mode = "0440";
owner = "grafana";
group = "grafana";
@ -35,7 +35,7 @@
services.grafana = {
enable = true;
security.admin_password = "$__file{${sops.secrets.vms.grafana.admin_password.path}}";
security.admin_password = "$__file{${config.sops.secrets.vms.grafana.admin_password.path}}";
settings.server = {
domain = "grafana.noc.eh22.intern";
root_url = "http://grafana.noc.eh22.intern/";