Watch : Limit to 4G ram.
This commit is contained in:
parent
8d11e61227
commit
3f79c50d24
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue