adyya-flake/services/monitoring/grafana.mod.nix
Ittihadyya 4e4b825e61
Some checks failed
/ Check formatting (push) Failing after 1s
testing, maybe that isn't needed
2024-12-20 16:27:14 +02:00

41 lines
947 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 = "0.0.0.0";
http_port = 6700;
};
# smtp = {};
# users = {};
};
/*
provision = {
alerting = {};
dashboards = {};
datasources = {};
};
*/
};
})
];
}