From 7a353a621e72f487907e31d440e2360b7ddb9d33 Mon Sep 17 00:00:00 2001 From: niten Date: Tue, 28 Nov 2023 09:40:20 -0800 Subject: [PATCH] Increase shm size, hopefully? --- frigate-container.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frigate-container.nix b/frigate-container.nix index 31b22cc..17f1985 100644 --- a/frigate-container.nix +++ b/frigate-container.nix @@ -190,6 +190,12 @@ in { "File containing password with which to authenticate to MQTT server."; }; }; + + shm-size = mkOption { + type = str; + description = "Size of shared memory."; + default = "512mb"; + }; }; config = mkIf cfg.enable { @@ -218,6 +224,7 @@ in { "${frigateCfg}:/config/config.yml" "${cfg.state-directory}:/media/frigate" ]; + shm_size = cfg.shm-size; devices = cfg.devices; ports = [ "${toString cfg.ports.frigate}:5000"