From c98a7bf8f284f278da1d7af23705ba232125f507 Mon Sep 17 00:00:00 2001 From: Daniel Rutz Date: Thu, 18 Oct 2018 23:42:20 +0200 Subject: [PATCH] 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. --- nixos/modules/services/networking/ssh/sshd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index c16fbe8a52f..5fab79f1b3d 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -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.