Skip to content

Go2rtc

services.go2rtc.enable

Whether to enable go2rtc streaming server. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/video/go2rtc/default.nix

services.go2rtc.package

The go2rtc package to use. Type: package

Default

pkgs.go2rtc

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/video/go2rtc/default.nix

services.go2rtc.settings

go2rtc configuration as a Nix attribute set.

See the wiki for possible configuration options.

Type: YAML value

Default

{ }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/video/go2rtc/default.nix

services.go2rtc.settings.api.listen

API listen address, conforming to a Go address string.

Type: string

Default

":1984"

Example

"127.0.0.1:1984"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/video/go2rtc/default.nix

services.go2rtc.settings.ffmpeg.bin

The ffmpeg package to use for transcoding.

Type: path

Default

${lib.getBin pkgs.ffmpeg_6-headless}/bin/ffmpeg

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/video/go2rtc/default.nix

services.go2rtc.settings.streams

Stream source configuration. Multiple source types are supported.

Check the configuration reference for possible options.

Type: attribute set of (string or list of string)

Default

{ }

Example

{cam1 = "onvif://admin:password@192.168.1.123:2020";cam2 = "tcp://192.168.1.123:12345";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/video/go2rtc/default.nix