services.tor.settings.ControlPort

See torrc manual.

Type
16 bit unsigned integer; between 0 and 65535 (both inclusive) or value "auto" (singular enum) or list of (16 bit unsigned integer; between 0 and 65535 (both inclusive) or value "auto" (singular enum) or (submodule))
Default
[ ]
Example
[
  {
    port = 9051;
  }
]
Declared
<nixpkgs/nixos/modules/services/security/tor.nix>