adyya-flake/services/monitoring/grafana.mod.nix
2024-12-20 16:10:19 +02:00

35 lines
No EOL
900 B
Nix

{
glucose.modules = [
({config, lib, ...}: {
services.grafana = {
enable = true;
dataDir = "/var/services/grafana";
# declarativePlugins = null;
settings = {
# analytics = {};
# database = {};
# paths = {};
security = {
admin_user = "$__file" + "{${config.sops.secrets.grafana_admin_account.path}}";
admin_password = "$__file" + "{${config.sops.secrets.grafana_admin_pass.path}}";
};
server = {
root_url = "https://grf.collective-conciousness.monster";
enable_gzip = true;
http_addr = "127.0.0.1";
http_port = 6700;
};
# smtp = {};
# users = {};
};
/*provision = {
alerting = {};
dashboards = {};
datasources = {};
};*/
};
})
];
}