Question about config file syntax

I am setting up Grafana in my docker container and I was confused about the configuration file format.

I have seen examples in both .ini and .toml syntax. I tried to figure this out with the documentation, but it doesn’t clearly state which formats are supported.

So is it ini? Or is it toml? Or a mix of both? Or either?

It’s ini grafana/conf/defaults.ini at main · grafana/grafana · GitHub
But some specific features e. g. LDAP config is toml grafana/conf/ldap.toml at main · grafana/grafana · GitHub