nixpkgs/nixos/modules/services/video
Martin Weinelt 3086313e4c
nixos/frigate: fix recording and serving of clips/recordings
Frigate does string prefix matching for paths, which isn't exactly
compatible with dynamically provisioned directories of systemd, where
/var/cache/frigate is actually a symlink to /var/cache/private/frigate.

Because we are unlikely to get this fixed upstream, this is one of the
reason we should stop using DynamicUser= here.

The other being, that nginx needs to be able to serve clips and
recordings from both the CacheDirectory and the StateDirectory, and
nginx being a member on a group that may only exist after it was started
up doesn't work reliably.

This is also why we relax the umask to allow g+r/g+rx for newly created
files. Existing installs may need the following permissions fix to get
things going.

```
find /var/lib/frigate/recordings -type d -exec chmod g+rx {} \;
find /var/lib/frigate/recordings -type f -exec chmod g+r {} \;
find /var/cache/frigate -type f -exec chmod g+r {} \;
```

Co-Authored-By: Daniel Barlow <dan@telent.net>
2023-07-27 18:36:25 +02:00
..
epgstation nixos/epgstation: add a new option 'ffmpeg' 2023-05-22 05:24:19 +09:00
go2rtc nixos/go2rtc: add support for v4l2 video sources 2023-06-09 20:20:38 +02:00
frigate.nix nixos/frigate: fix recording and serving of clips/recordings 2023-07-27 18:36:25 +02:00
mediamtx.nix rtsp-simple-server: rebrand as mediamtx 2023-04-12 12:23:44 +03:00
mirakurun.nix mirakurun: use node 18 2023-05-25 03:44:13 +09:00
replay-sorcery.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
unifi-video.nix mongodb-4_2: drop 2023-06-06 14:26:11 +03:00
v4l2-relayd.nix nixos/v4l2-relayd: init 2023-04-09 00:41:45 +02:00