From 3f78de8457191ed60ec01cdf8aefb7502738ccb0 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 22 Sep 2025 16:17:57 +0200 Subject: [PATCH] nixos/nixos-containers: use `types.port` --- nixos/modules/virtualisation/nixos-containers.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/virtualisation/nixos-containers.nix b/nixos/modules/virtualisation/nixos-containers.nix index 44619513f577..d95ab944acd8 100644 --- a/nixos/modules/virtualisation/nixos-containers.nix +++ b/nixos/modules/virtualisation/nixos-containers.nix @@ -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"; };