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:19:27 +02:00
parent ba0f52d803
commit 0983c18e6a
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -103,6 +103,10 @@ in
serviceConfig = {
DynamicUser = true;
User = "go2rtc";
SupplementaryGroups = [
# for v4l2 devices
"video"
];
StateDirectory = "go2rtc";
ExecStart = "${cfg.package}/bin/go2rtc -config ${configFile}";
};