From c13e628cd769d86b3e8d397b7935be25963b7940 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sun, 25 Feb 2024 06:59:08 +0100 Subject: [PATCH] Override commafeed entrypoint to limit ram --- hosts/nixos/lapetus/services/commafeed.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hosts/nixos/lapetus/services/commafeed.nix b/hosts/nixos/lapetus/services/commafeed.nix index 0465eda..eb81859 100644 --- a/hosts/nixos/lapetus/services/commafeed.nix +++ b/hosts/nixos/lapetus/services/commafeed.nix @@ -17,7 +17,10 @@ in ports = [ "${toString port}:8082" ]; # server:docker volumes = [ "${dataDir}:/commafeed/data" ]; # server:docker - extraOptions = [ "--memory=128m" ]; # the JVM is way too hungry + + # the JVM is way too hungry + entrypoint = builtins.toJSON + [ "java" "-Xmx64m" "-jar" "commafeed.jar" "server" "config.yml" ]; # https://github.com/Athou/commafeed/blob/master/commafeed-server/config.yml.example environment = {