FWIW, nix (the package manager) can do this right now, and without all the crypto BS attached.
https://nixos.org/manual/nix/stable/quick-start.html
For example, here's the config to set up development environment for headscale:
https://github.com/juanfont/headscale/blob/6a311f4ab68a4d856...