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.