Download : Limit to 4G memory.
This commit is contained in:
parent
d92ac0f4d0
commit
d5041c3b2f
|
@ -1,5 +1,6 @@
|
|||
{ container, lib, ... } @args: let
|
||||
cfg = container.config.download;
|
||||
memLimit = "4G";
|
||||
in {
|
||||
systemd.tmpfiles.rules = container.mkContainerDir cfg [
|
||||
"data"
|
||||
|
@ -21,6 +22,8 @@ in {
|
|||
dataDir = "/var/lib/deluge";
|
||||
web.enable = true;
|
||||
};
|
||||
|
||||
systemd.services.deluged.serviceConfig.MemoryLimit = memLimit;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -48,11 +48,7 @@ in {
|
|||
dataDir = "/var/lib/jellyfin";
|
||||
};
|
||||
|
||||
systemd.services.jellyfin = {
|
||||
serviceConfig = {
|
||||
MemoryLimit = memLimit;
|
||||
};
|
||||
};
|
||||
systemd.services.jellyfin.serviceConfig.MemoryLimit = memLimit;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue