Add go2rtc back in...

This commit is contained in:
niten 2023-11-29 15:01:42 -08:00
parent 2e0d2d014f
commit 3f2a6ba217
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,8 @@ let
removeNewline = removeSuffix "\n";
flatMapAttrs' = f: attrs: listToAttrs (mapConcat f attrs);
frigateCfg = let
content = builtins.toJSON {
mqtt = {
@ -36,6 +38,9 @@ let
}
];
}) cfg.cameras;
go2rtc.streams =
mapAttrs' (_: camOpts: nameValuePair camOpts.name [ camOpts.low ])
cfg.cameras;
detectors = cfg.detectors;
record = {
enabled = true;