feat(users/picnoir/tvix-daemon): introduce tvix-daemon

This daemon is a re-implementation of the Nix daemon except it uses
tvix-store as a remote store.

For now, it's very barebones, this is just a quick and dirty setup to
get started with the project. We bind to the unix socket provided by
systemd, wait for cpp Nix to send the magic hello bytes, respond with
the magic hello bytes and call it a day.

Storing this under my username for now, the project is mostly
irrelevant as it is. We'll move it to Tvix if it gets complete and
relevant at some point.

Change-Id: Ifc5dce2df37413504f9de1942c5b7d425eddf759
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11198
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
This commit is contained in:
Picnoir 2024-03-19 14:34:59 +01:00 committed by picnoir picnoir
parent 09e5f1782c
commit 29b5ffbda0
7 changed files with 15782 additions and 0 deletions

View file

@ -0,0 +1,17 @@
[package]
name = "tvix-daemon"
version = "0.1.0"
edition = "2021"
[dependencies]
tvix-store = { path = "../../../tvix/store/" }
nix-compat = { path = "../../../tvix/nix-compat/" }
tokio-listener = "0.3.1"
tokio = { version = "1.36.0", features = ["full"] }
tracing-subscriber = "0.3.18"
tracing = "0.1.40"
anyhow = "1.0.81"
clap = { version = "4.5.3", features = ["derive"] }
[dev-dependencies]
tokio-test = "0.4.4"