diff --git a/container/Download.nix b/container/Download.nix index 485cefe..ef3ed37 100644 --- a/container/Download.nix +++ b/container/Download.nix @@ -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; }; }; } diff --git a/container/Watch.nix b/container/Watch.nix index c7e3d2c..f2b7f17 100644 --- a/container/Watch.nix +++ b/container/Watch.nix @@ -48,11 +48,7 @@ in { dataDir = "/var/lib/jellyfin"; }; - systemd.services.jellyfin = { - serviceConfig = { - MemoryLimit = memLimit; - }; - }; + systemd.services.jellyfin.serviceConfig.MemoryLimit = memLimit; }; }; }