services: use 'port' option type

This commit is contained in:
Erik Arvstedt 2020-06-02 17:09:52 +02:00
parent 0ac1e496b2
commit db48ab9b69
No known key found for this signature in database
GPG key ID: 33312B944DD97846
6 changed files with 10 additions and 10 deletions

View file

@ -40,7 +40,7 @@ in {
description = "RPC listening address.";
};
port = mkOption {
type = types.ints.u16;
type = types.port;
default = 50001;
description = "RPC port.";
};
@ -52,7 +52,7 @@ in {
TLSProxy = {
enable = mkEnableOption "Nginx TLS proxy";
port = mkOption {
type = types.ints.u16;
type = types.port;
default = 50003;
description = "Port on which to listen for TLS client connections.";
};