adyya-flake/services/monitoring/grafana.mod.nix
Ittihadyya f93018a4cf
Some checks failed
/ Check formatting (push) Failing after 1s
configure grafana further. set up prometheus node export.
2024-12-20 17:53:08 +02:00

60 lines
1.7 KiB
Nix

{
glucose.modules = [
({
config,
lib,
...
}: {
services.grafana = {
enable = true;
dataDir = "/var/services/grafana";
# declarativePlugins = null;
settings = {
analytics = {
check_for_plugin_updates = false;
check_for_updates = false;
feedback_links_enabled = false;
reporting_enabled = false;
};
database = {
host = "10.24.1.9:5432";
type = "postgres";
name = "grafanadb";
user = "grafana";
password = builtins.concatStringsSep "" ["$__file" "{${config.sops.secrets.grafana_db_pass.path}}"];
};
# paths = {};
security = {
admin_user = builtins.concatStringsSep "" ["$__file" "{${config.sops.secrets.grafana_admin_account.path}}"];
admin_password = builtins.concatStringsSep "" ["$__file" "{${config.sops.secrets.grafana_admin_pass.path}}"];
secret_key = builtins.concatStringsSep "" ["$__file" "{${config.sops.secrets.grafana_secret_key.path}}"];
disable_gravatar = true;
cookie_secure = true;
};
server = {
root_url = "https://grf.collective-conciousness.monster";
enable_gzip = true;
http_addr = "0.0.0.0";
http_port = 6700;
};
# smtp = {};
users = {
allow_org_create = true;
default_theme = "system";
};
};
/*
provision = {
alerting = {};
dashboards = {};
datasources = {};
};
*/
};
})
];
}