From 91032aa4fc2ded188b049d97523093cd0ae867fd Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 29 Nov 2023 16:09:19 -0800 Subject: [PATCH] Allow for a default birdseye view --- frigate-container.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate-container.nix b/frigate-container.nix index 7e91023..50be7dc 100644 --- a/frigate-container.nix +++ b/frigate-container.nix @@ -27,7 +27,7 @@ let ffmpeg.hwaccel_args = optional (cfg.hwaccel != null) cfg.hwaccel; cameras = mapAttrs' (_: camOpts: nameValuePair camOpts.name { - birdseye.mode = "objects"; + birdseye.mode = if camOpts.default then "continuous" else "objects"; ffmpeg.inputs = [ { path = camOpts.streams.high; @@ -160,6 +160,8 @@ in { default = name; }; + default = mkEnableOption "Make camera the primary birds-eye view."; + streams = { low = mkOption { type = str;