From 4ed50a508c2aa09c5e9f0ee707a39ddfe1c4c618 Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 28 Jan 2024 16:56:01 +0300 Subject: [PATCH] grafana: download more ram --- pkgs/servers/monitoring/grafana/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/servers/monitoring/grafana/default.nix b/pkgs/servers/monitoring/grafana/default.nix index 53ca53651243..fcb3c1f2ed3b 100644 --- a/pkgs/servers/monitoring/grafana/default.nix +++ b/pkgs/servers/monitoring/grafana/default.nix @@ -132,6 +132,9 @@ buildGoModule rec { yarn config set enableTelemetry 0 yarn config set cacheFolder $offlineCache yarn --immutable-cache + + # The build OOMs on memory constrained aarch64 without this + export NODE_OPTIONS=--max_old_space_size=4096 ''; postBuild = ''