nixos/go2rtc: add support for v4l2 video sources

Capturing from /dev/video* requires being member of the video group.
This commit is contained in:
Martin Weinelt
2023-06-09 20:20:38 +02:00
parent ba0f52d803
commit 0983c18e6a
@@ -103,6 +103,10 @@ in
serviceConfig = {
DynamicUser = true;
User = "go2rtc";
SupplementaryGroups = [
# for v4l2 devices
"video"
];
StateDirectory = "go2rtc";
ExecStart = "${cfg.package}/bin/go2rtc -config ${configFile}";
};