From a74a23885d3ce9a9e2f2cdf24b43141f161894ef Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 9 May 2025 01:59:10 +0200 Subject: [PATCH] nixos/frigate: create model cache dir In 0.15.1 frigate has a logic error that makes it not ensure the model cache dir exists before using it. A workaround has been committed for newer versions, so we can drop this on the next release. Fixes: #402813 --- nixos/modules/services/video/frigate.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/video/frigate.nix b/nixos/modules/services/video/frigate.nix index 3a0112d04d4b..7bc277f89b20 100644 --- a/nixos/modules/services/video/frigate.nix +++ b/nixos/modules/services/video/frigate.nix @@ -669,7 +669,11 @@ in # Caches PrivateTmp = true; - CacheDirectory = "frigate"; + CacheDirectory = [ + "frigate" + # https://github.com/blakeblackshear/frigate/discussions/18129 + "frigate/model_cache" + ]; CacheDirectoryMode = "0750"; # Sockets/IPC