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
1 changed files with 5 additions and 3 deletions

View File

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