Skip to content

Sing box

services.sing-box.enable

Whether to enable sing-box universal proxy platform. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/sing-box.nix

services.sing-box.package

The sing-box package to use. Type: package

Default

pkgs.sing-box

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/sing-box.nix

services.sing-box.settings

The sing-box configuration, see https://sing-box.sagernet.org/configuration/ for documentation.

Options containing secret data should be set to an attribute set containing the attribute _secret - a string pointing to a file containing the value the option should be set to.

Type: JSON value

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/sing-box.nix

services.sing-box.settings.route.geoip.path

The path to the sing-geoip database.

Type: path

Default

${pkgs.sing-geoip}/share/sing-box/geoip.db

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/sing-box.nix

services.sing-box.settings.route.geosite.path

The path to the sing-geosite database.

Type: path

Default

${pkgs.sing-geosite}/share/sing-box/geosite.db

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/networking/sing-box.nix