diff --git a/tvix/boot/tests/default.nix b/tvix/boot/tests/default.nix index 87530da0d..22f9de6bb 100644 --- a/tvix/boot/tests/default.nix +++ b/tvix/boot/tests/default.nix @@ -23,6 +23,10 @@ let , importPathName ? null + # Commands to run before starting the tvix-daemon. Useful to provide + # auxillary mock services. + , preStart ? "" + # The cmdline to pass to the VM. # Defaults to tvix.find, which lists all files in the store. , vmCmdline ? "tvix.find" @@ -51,6 +55,8 @@ let # Ensure we can construct http clients. export SSL_CERT_FILE="${pkgs.cacert.out}/etc/ssl/certs/ca-bundle.crt" + ${preStart} + # Start the tvix daemon, listening on a unix socket. BLOB_SERVICE_ADDR=${blobServiceAddr} \ DIRECTORY_SERVICE_ADDR=${directoryServiceAddr} \