Hacker News new | ask | show | jobs
by iElectric2 2783 days ago
Some self promotion for NixOS infrastructure:

* binary caches as a service: https://cachix.org

* Nix continuous integration as a service: https://hercules-ci.com

1 comments

Do you have a super quick example that you can include in plugs like this? I am doing my own caching directly with Azure storage (though it works anywhere you can enumerate and upload blobs) [1], but I think Cachix and Hercules are a huge potential chance to excite more folks about Nix and NixOS.

I'm thinking something like a blog post where someone patches the Linux kernel, does a `nix-build | cachix push` and then show how another naive user might do `cachix use && nix-build` and get a magic no-op build. Maybe just a slightly more fleshed out example under the "What" section of the Cachix homepage.

For the non-Nix/NixOS folks, it's an impressive demo, and I suspect even for Nix-folks, it's impressive for hiding all of the signing/upload complexity.

For others reading this comment, Nix + Cachix means that no two people on your team should ever need to spend CPU cycles building two copies of the same binary, or the same docker image, or the same VM image, etc, assuming all of the inputs are the same. It's so cool, I'm so happy to keep seeing people finding out about Nix and NixOS. I feel like what Kubernetes did to application development, Nix does to operating system, toolchain, and application development, and configuration management.

[1]: https://github.com/colemickens/nixcfg/blob/master/utils/azur...

EDIT: follow-up: It look like less than 2 minutes to start pushing to my new Cachix repo. Excellent job with this, it's going to be hard to motivate myself to keep maintaining my scripts with this being so easy.

Thanks! That's very good feedback. We are currently working hard to get all features done and streamlining use. Next phase is marketing to non-Nix devs, probably 2019 :)