Add go2rtc back in...
This commit is contained in:
parent
2e0d2d014f
commit
3f2a6ba217
|
@ -14,6 +14,8 @@ let
|
||||||
|
|
||||||
removeNewline = removeSuffix "\n";
|
removeNewline = removeSuffix "\n";
|
||||||
|
|
||||||
|
flatMapAttrs' = f: attrs: listToAttrs (mapConcat f attrs);
|
||||||
|
|
||||||
frigateCfg = let
|
frigateCfg = let
|
||||||
content = builtins.toJSON {
|
content = builtins.toJSON {
|
||||||
mqtt = {
|
mqtt = {
|
||||||
|
@ -36,6 +38,9 @@ let
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}) cfg.cameras;
|
}) cfg.cameras;
|
||||||
|
go2rtc.streams =
|
||||||
|
mapAttrs' (_: camOpts: nameValuePair camOpts.name [ camOpts.low ])
|
||||||
|
cfg.cameras;
|
||||||
detectors = cfg.detectors;
|
detectors = cfg.detectors;
|
||||||
record = {
|
record = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
|
Loading…
Reference in New Issue