MyNixOS website logo
option

services.mediamtx.settings

Settings for MediaMTX. Refer to the defaults at https://github.com/bluenviron/mediamtx/blob/main/mediamtx.yml.

Declarations
Type
YAML value
Default
{ }
Example
{
  paths = {
    cam = {
      runOnInit = "\${lib.getExe pkgs.ffmpeg} -f v4l2 -i /dev/video0 -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH";
      runOnInitRestart = true;
    };
  };
}