From b9a0d12e53cd37496d3e382f2697c7b7d60d50e5 Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Tue, 10 Dec 2024 14:08:24 +0100 Subject: [PATCH] feat: make eval store configurable --- src/website/shared/listeners/nix_evaluation.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/website/shared/listeners/nix_evaluation.py b/src/website/shared/listeners/nix_evaluation.py index 0c3f7147..d6d93d87 100644 --- a/src/website/shared/listeners/nix_evaluation.py +++ b/src/website/shared/listeners/nix_evaluation.py @@ -54,6 +54,13 @@ async def perform_evaluation( settings.EVALUATION_GC_ROOTS_DIRECTORY, "--expr", evaluation_wrapper, + # write drv files to memory. + # it's a lot faster and there's no harm in losing them since we currently don't use them for anything + "--eval-store", + # TODO: create the setting and wire it up with the service module and deployment config. + # please document what the operator has to do and why + # should default to /nix/store since not every system will have the right stuff set up + settings.EVALUATION_STORE_DIR, "--include", f"nixpkgs={working_tree}", ]