Skip to content

Commit b9a0d12

Browse files
feat: make eval store configurable
1 parent bf64ce1 commit b9a0d12

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/website/shared/listeners/nix_evaluation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ async def perform_evaluation(
5454
settings.EVALUATION_GC_ROOTS_DIRECTORY,
5555
"--expr",
5656
evaluation_wrapper,
57+
# write drv files to memory.
58+
# it's a lot faster and there's no harm in losing them since we currently don't use them for anything
59+
"--eval-store",
60+
# TODO: create the setting and wire it up with the service module and deployment config.
61+
# please document what the operator has to do and why
62+
# should default to /nix/store since not every system will have the right stuff set up
63+
settings.EVALUATION_STORE_DIR,
5764
"--include",
5865
f"nixpkgs={working_tree}",
5966
]

0 commit comments

Comments
 (0)