about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Rutz <info@danielrutz.com>2018-10-18 23:42:20 +0200
committerDaniel Rutz <info@danielrutz.com>2018-10-18 23:42:20 +0200
commitc98a7bf8f284f278da1d7af23705ba232125f507 (patch)
treecd5b9f299f713d8c70ca26dfbb9f631a6a0e90fe
parent161c0765ad0e40408aeef07c2db896d185e66522 (diff)
downloadnixlib-c98a7bf8f284f278da1d7af23705ba232125f507.tar
nixlib-c98a7bf8f284f278da1d7af23705ba232125f507.tar.gz
nixlib-c98a7bf8f284f278da1d7af23705ba232125f507.tar.bz2
nixlib-c98a7bf8f284f278da1d7af23705ba232125f507.tar.lz
nixlib-c98a7bf8f284f278da1d7af23705ba232125f507.tar.xz
nixlib-c98a7bf8f284f278da1d7af23705ba232125f507.tar.zst
nixlib-c98a7bf8f284f278da1d7af23705ba232125f507.zip
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.
-rw-r--r--nixos/modules/services/networking/ssh/sshd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix
index c16fbe8a52fa..5fab79f1b3d7 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.