From 558874731af520cb07e87d41da570f9724b154f7 Mon Sep 17 00:00:00 2001 From: sora-ext Date: Wed, 3 Jun 2026 17:15:46 +0200 Subject: [PATCH] Update modules/server/containers/apps/frigate.nix --- modules/server/containers/apps/frigate.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/server/containers/apps/frigate.nix b/modules/server/containers/apps/frigate.nix index 6d56447..94aef57 100644 --- a/modules/server/containers/apps/frigate.nix +++ b/modules/server/containers/apps/frigate.nix @@ -32,7 +32,7 @@ in { paths = [ { - path = "${serverCfg.configPath}/frigate/"; + path = "${serverCfg.path.config}/frigate/"; mode = "0755"; } { @@ -53,7 +53,7 @@ in { overrides = { cmd = [ ]; volumes = [ - "${serverCfg.configPath}/frigate:/config" + "${serverCfg.path.config}/frigate:/config" "/var/lib/frigate/storage:/media/frigate" "/dev/bus/usb:/dev/bus/usb" # Passes Google Coral USB TPU to the container "/dev/dri:/dev/dri" # Passes Intel/AMD GPU for hardware video decoding @@ -66,12 +66,12 @@ in { trigger = "server"; envFile = config.sops.secrets."FRIGATE_ENV".path; script = pkgs.writeShellScript "setup-frigate" '' - mkdir -p "${serverCfg.configPath}/frigate" + mkdir -p "${serverCfg.path.config}/frigate" mkdir -p "/var/lib/frigate/storage" # Bootstrap a standard configuration layout if missing - if [ ! -f "${serverCfg.configPath}/frigate/config.yml" ]; then - cat < "${serverCfg.configPath}/frigate/config.yml" + if [ ! -f "${serverCfg.path.config}/frigate/config.yml" ]; then + cat < "${serverCfg.path.config}/frigate/config.yml" mqtt: enabled: False # Set to True and define host if connecting to Home Assistant