From 31b883fbe922fb2c495d90b083e6f1e17193cb6a Mon Sep 17 00:00:00 2001 From: n0099 Date: Tue, 28 Oct 2025 00:16:06 +0000 Subject: [PATCH 1/2] nixos/tor: replace `ints.between 0 65535` with `lib.types.port` --- nixos/modules/services/security/tor.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/tor.nix b/nixos/modules/services/security/tor.nix index 92410e28a1ed..4b9b82a57e8a 100644 --- a/nixos/modules/services/security/tor.nix +++ b/nixos/modules/services/security/tor.nix @@ -795,7 +795,7 @@ in }; options.HiddenServiceMaxStreams = lib.mkOption { description = (descriptionGeneric "HiddenServiceMaxStreams"); - type = with lib.types; nullOr (ints.between 0 65535); + type = with lib.types; nullOr port; default = null; }; options.HiddenServiceMaxStreamsCloseCircuit = optionBool "HiddenServiceMaxStreamsCloseCircuit"; From ed404818611e1e280b78c162be14ad9c5b40f344 Mon Sep 17 00:00:00 2001 From: n0099 Date: Tue, 28 Oct 2025 03:21:43 +0000 Subject: [PATCH 2/2] nixos/tor: replace `ints.between 0 65535` with `lib.types.ints.u16` --- nixos/modules/services/security/tor.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/security/tor.nix b/nixos/modules/services/security/tor.nix index 4b9b82a57e8a..f1e27cbaa256 100644 --- a/nixos/modules/services/security/tor.nix +++ b/nixos/modules/services/security/tor.nix @@ -795,7 +795,7 @@ in }; options.HiddenServiceMaxStreams = lib.mkOption { description = (descriptionGeneric "HiddenServiceMaxStreams"); - type = with lib.types; nullOr port; + type = with lib.types; nullOr ints.u16; default = null; }; options.HiddenServiceMaxStreamsCloseCircuit = optionBool "HiddenServiceMaxStreamsCloseCircuit";