fix serviceconfig

This commit is contained in:
2023-08-19 06:23:24 +02:00
parent 7d125d54b2
commit 272ade9527

View File

@@ -20,7 +20,10 @@ in {
enable = true;
after = ["network-online.target"];
wantedBy = ["multi-user.target"];
EnvironmentFile=config.sops.secrets.victoria-agent-env.path;
script = "vmagent -promscrape.config=${configure_prom} -envflag.enable -remoteWrite.url=https://victoria-server.cloonar.com/api/v1/write";
serviceConfig = {
EnvironmentFile=config.sops.secrets.victoria-agent-env.path;
};
};
}