liminix/modules/openwrt-prometheus-exporter/default.nix
soyouzpanda 78476aa743
feat: init openwrt-prometheus-exporter module
Signed-off-by: soyouzpanda <soyouzpanda@soyouzpanda.fr>
2025-03-15 10:42:56 +01:00

25 lines
542 B
Nix

{ lib, pkgs, config, ... }:
let
inherit (lib) mkOption types;
inherit (pkgs) liminix;
in {
options = {
system.service.openwrt-prometheus-exporter = mkOption {
type = liminix.lib.types.serviceDefn;
};
};
config = {
system.service.openwrt-prometheus-exporter = liminix.callService ./service.nix {
httpPorts = mkOption {
type = types.listOf types.port;
default = [ ];
};
httpsPorts = mkOption {
type = types.listOf types.port;
default = [ ];
};
};
};
}