diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-06-09 20:19:27 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-06-09 20:20:38 +0200 |
commit | 0983c18e6aba9d09da393ec131dabc53cc9a1181 (patch) | |
tree | 379ecab8eceba70d41306db6ba665bb5a4f4ba01 /nixos/modules/services/video | |
parent | ba0f52d80375147840b83f1511599fbe333be3ad (diff) |
nixos/go2rtc: add support for v4l2 video sources
Capturing from /dev/video* requires being member of the video group.
Diffstat (limited to 'nixos/modules/services/video')
-rw-r--r-- | nixos/modules/services/video/go2rtc/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/video/go2rtc/default.nix b/nixos/modules/services/video/go2rtc/default.nix index 45506d551f1c..1151d31b68e6 100644 --- a/nixos/modules/services/video/go2rtc/default.nix +++ b/nixos/modules/services/video/go2rtc/default.nix @@ -103,6 +103,10 @@ in serviceConfig = { DynamicUser = true; User = "go2rtc"; + SupplementaryGroups = [ + # for v4l2 devices + "video" + ]; StateDirectory = "go2rtc"; ExecStart = "${cfg.package}/bin/go2rtc -config ${configFile}"; }; |