services.v2ray.config
NixOS option
The configuration object. Either configFile or config must be specified. See https://www.v2fly.org/en_US/v5/config/overview.html.
type: null or JSON valueDefault
null
Example
declared in: nixos/modules/services/networking/v2ray.nixView source on NixOS/nixpkgs →{
inbounds = [
{
listen = "127.0.0.1";
port = 1080;
protocol = "http";
}
];
outbounds = [
{
protocol = "freedom";
}
];
}