Watch : Limit to 4G ram.

This commit is contained in:
Dmitry Voronin 2024-06-14 03:57:13 +03:00
parent 8d11e61227
commit 3f79c50d24
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,5 +1,6 @@
{ container, lib, ... } @args: let
cfg = container.config.watch;
memLimit = "8G";
in {
systemd.tmpfiles.rules = container.mkContainerDir cfg [
"data"
@ -46,6 +47,12 @@ in {
cacheDir = "/var/cache/jellyfin";
dataDir = "/var/lib/jellyfin";
};
systemd.services.jellyfin = {
serviceConfig = {
MemoryLimit = memLimit;
};
};
};
};
}