From 3f2a6ba2177d6adbb840038147b64bad8f3e6285 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 29 Nov 2023 15:01:42 -0800 Subject: [PATCH] Add go2rtc back in... --- frigate-container.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frigate-container.nix b/frigate-container.nix index ff308bf..27219ad 100644 --- a/frigate-container.nix +++ b/frigate-container.nix @@ -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;