0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/prometheus/exporters: use types.port for port option

This commit is contained in:
Maximilian Bosch 2021-03-05 13:06:03 +01:00
parent 1d73b07d87
commit d65d9dea2c
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -64,7 +64,7 @@ let
mkExporterOpts = ({ name, port }: {
enable = mkEnableOption "the prometheus ${name} exporter";
port = mkOption {
type = types.int;
type = types.port;
default = port;
description = ''
Port to listen on.