diff --git a/hosts/vno1-gdrx/configuration.nix b/hosts/vno1-gdrx/configuration.nix index c96b311..5df4e22 100644 --- a/hosts/vno1-gdrx/configuration.nix +++ b/hosts/vno1-gdrx/configuration.nix @@ -1,7 +1,8 @@ { + lib, + pkgs, config, myData, - pkgs, ... }: let @@ -79,6 +80,15 @@ in services.mediamtx = { enable = true; + allowVideoAccess = true; + settings = { + paths = { + cam = { + runOnInit = "${lib.getExe pkgs.ffmpeg} -f v4l2 -i /dev/video0 -f rtsp rtsp://localhost:$RTSP_PORT/$RTSP_PATH"; + runOnInitRestart = true; + }; + }; + }; }; mj = {