A proposal for replacing the Nix worker protocol

I think it’s good to be really concrete on the short-term goals.

  1. Give `nix daemon` and `nix-store --serve` protocols separate serializers with version info by Ericson2314 · Pull Request #6223 · NixOS/nix · GitHub this separates the serialization of the multiple protocols we have today so the composable bits can handle versioning / versioning needed to be done out of band. Something likes this has to be merged.

    I would appreciate suggestions on how to deal with the remaining concerns; it might just be best to just duplicate the code I share with C++ for example?!

  2. We need to do deprecate the legacy protocol Deprecate legacy ssh store / `nix-store --serve` · Issue #4665 · NixOS/nix · GitHub

  3. I agree the fancier stuff @anon52471967 is talking about probably shouldn’t live in tree from day one, but if we improve our modularity we can better allow experiments to live out of tree.

    Ultimately @anon52471967 is right the current way of distributing builds is embarrassingly bad, and this is holding back Nix in institutional settings.

6 Likes