nixos/sshd: Use port type instead of int

This change leads to an additional check of the port number at build time, making invalid port values impossible.
This commit is contained in:
Daniel Rutz 2018-10-18 23:42:20 +02:00
parent 161c0765ad
commit c98a7bf8f2

View File

@ -130,7 +130,7 @@ in
};
ports = mkOption {
type = types.listOf types.int;
type = types.listOf types.port;
default = [22];
description = ''
Specifies on which ports the SSH daemon listens.