25 lines
542 B
Nix
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 = [ ];
|
|
};
|
|
};
|
|
};
|
|
}
|