Compare commits

..

No commits in common. "d65b4380e77bfe7fe5175f1e8e808a6d45389eaf" and "daf1e39df35dffb5fd6513a1c44c4b60f9ec9565" have entirely different histories.

2 changed files with 2 additions and 18 deletions

View file

@ -14,7 +14,7 @@ in {
owner = "grafana";
group = "grafana";
};
grafanaAdminPassword = {
grafanaAdminPassword= {
file = hostSecrets + "grafana/admin_password.age";
owner = "grafana";
group = "grafana";
@ -23,16 +23,7 @@ in {
services = {
grafana = {
enable = true;
provision = {
enable = true;
datasources.settings = {
apiVersion = 1;
};
};
settings = {
analytics.reporting_enabled = false;
security = {
admin_user = "$__file{${config.age.secrets.grafanaAdminName.path}}";
admin_password = "$__file{${config.age.secrets.grafanaAdminPassword.path}}";

View file

@ -1,4 +1,4 @@
{config, ...}: {
{...}: {
services.prometheus = {
enable = true;
enableReload = true;
@ -21,11 +21,4 @@
}
];
};
services.grafana.provision = {
datasources.settings.datasources = [{
name = "Prometheus";
type = "prometheus";
url = "http://127.0.0.1:${builtins.toString config.services.prometheus.port}";
}];
};
}