Fix typos, working agenix and grafana config

This commit is contained in:
Théo Barnouin 2024-10-23 16:45:46 +02:00
parent 33a47b21a7
commit 606ca3c6c1
2 changed files with 9 additions and 6 deletions

View file

@ -21,13 +21,9 @@ in
config = lib.mkIf cfg.enable {
age.secrets.grafana-db = {
file = ./secrets/grafana-db.age;
mode = "0660";
owner = "grafana";
};
age.secrets.kuma-token = {
file = ./secrets/kuma-token.age;
mode = "0660";
};
age.secrets.kuma-token.file = ./secrets/kuma-token.age;
services.rsyslogd = {
enable = true;
extraConfig = ''
@ -61,7 +57,7 @@ in
host = "${cfg.pgsql_ip}:5432";
name = "grafana";
user = "grafana";
password = "\$__file{${config.age.secrets.grafana-db.path}";
password = "\$__file{${config.age.secrets.grafana-db.path}}";
};
};
};