frigate: mount /tmp/cache as tmpfs

This commit is contained in:
Motiejus Jakštys 2025-03-14 11:21:32 +00:00
parent 9a5f427580
commit 8e7e7fc4d4

View File

@ -102,6 +102,11 @@ in
LoadCredential = [ "secrets.env:${cfg.secretsEnv}" ];
};
};
frigate.serviceConfig = {
PrivateTmp = true;
ExecStartPre = [ "${pkgs.coreutils}/bin/install --owner=frigate --group=frigate -d /tmp/cache" ];
TemporaryFileSystem = "/tmp/cache:size=1G";
};
};
services.go2rtc = {