nixos/nixos-containers: use types.port

This commit is contained in:
h7x4
2025-09-22 16:17:57 +02:00
parent f2b5f25655
commit 3f78de8457
@@ -416,11 +416,11 @@ let
description = "The protocol specifier for port forwarding between host and container";
};
hostPort = mkOption {
type = types.int;
type = types.port;
description = "Source port of the external interface on host";
};
containerPort = mkOption {
type = types.nullOr types.int;
type = types.nullOr types.port;
default = null;
description = "Target port of container";
};