Increase shm size, hopefully?

This commit is contained in:
niten 2023-11-28 09:40:20 -08:00
parent 0ce0a59e71
commit 7a353a621e
1 changed files with 7 additions and 0 deletions

View File

@ -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"