mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
c2726dd41b
commit
ffde3c1c27
14 changed files with 170 additions and 131 deletions
|
|
@ -75,8 +75,10 @@ in {
|
|||
allowedTCPPorts = map mkExporterPort exporters;
|
||||
res = builtins.tryEval (any (enablePort true) exporters);
|
||||
cond = lib.warnIf (!res.success) "broken prometheus exporter: ${name}" res.value;
|
||||
in mkIf cond allowedTCPPorts;
|
||||
in
|
||||
mkIf cond allowedTCPPorts;
|
||||
mkExporterPort = exporter: mkIf (enablePort false exporter) exporter.port;
|
||||
in mkMerge (mapAttrsToList mkExporterPorts allExporters);
|
||||
in
|
||||
mkMerge (mapAttrsToList mkExporterPorts allExporters);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue