I’m trying to configure nixos’ services.vector.settings with the following TOML:
[sinks.es_cluster]
host = "http://127.0.0.1:9200"
inputs = ["in"]
type = "elasticsearch"
[sources.in]
type = "journald"
And the following lines in my configuration.nix
services.vector = {
enable = true;
journaldAccess = true;
settings = {
sources.in = {
type = "journald";
};
sinks.out = {
inputs = ["in"];
type = "elasticsearch";
host = "http://127.0.0.1:9200";
};
};
};
fails to evaluate with:
unexpected IN, expecting ID or OR_KW or DOLLAR_CURLY or ‘"’
Surrounding attributes in double quotes will result to
["sinks.es_cluster"]
instead of
[sinks.es_cluster]
which results to an invalid configuration.
How can I configure this service properly?