snmp exporter: maybe exposing the file will work now?

This commit is contained in:
Motiejus Jakštys 2023-09-05 14:58:30 +03:00
parent 24e6aa333e
commit fd9f30f7d4

View File

@ -1,7 +1,7 @@
{ {
config, config,
lib, lib,
myData, pkgs,
... ...
}: { }: {
options.mj.services.snmp_exporter = with lib.types; { options.mj.services.snmp_exporter = with lib.types; {
@ -13,8 +13,10 @@
services.prometheus.exporters.snmp = { services.prometheus.exporters.snmp = {
enable = true; enable = true;
configurationPath = ./snmp.yml; configurationPath = pkgs.concatTextFile {
name = "snmp.yml";
files = [./snmp.yml];
};
}; };
}; };
} }