diff --git a/container/Watch.nix b/container/Watch.nix index 959494d..c7e3d2c 100644 --- a/container/Watch.nix +++ b/container/Watch.nix @@ -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; + }; + }; }; }; }