Hacker News new | ask | show | jobs
by edukite 42 days ago
Nix will install me clickhouse on 2 devices at once, create restricted networking between 6 devices?
3 comments

It can. For instance I have a flake where I define all of my machines, share some confit between them and have clearly defined customisation points.

Form that configuration I can build everything on one of my machines and push the builds to the others. Or each machine can do its own builds.

Have a look at projects like NixOps or Colmena to see some more automation on top of standard builds targeting other machines.

And how much disk space this takes?
It depends how you do it. Everything is a tradeoff. Do you want everything to get assembled on your laptop and pushed to your machines? That means your laptop ends up holding a copy of every package that's going to any machine. Do you want each machine to do its own config build, merely being "puppeted" by your laptop? That could be slow if your machines are small embedded devices. Or maybe you want to run the builds on a beefy remote server because you are doing custom builds from source instead of using the cache... All of this is possible with Nix, but there are real design considerations.
Depending on your specific requirements, yes. And quite elegantly.

There are several ways to do this. For one, see: https://github.com/nix-community/colmena

Sure. I do this in my homelab with ~20 devices, most are very small/embedded, a few are bigger including the build machine.