nixos/prometheus/exporters: use `types.port` for `port` option
This commit is contained in:
parent
1d73b07d87
commit
d65d9dea2c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue