Remix.run Logo
▲ edukite 7 hours ago

Personally I prefer ansible plus I can easily manage multiple machines but this is a little but different use case. I have 5 micro PC like orange pi, Raspberry pi, radxa... so I prefer to bootstrap them from I laptop with a single command in am event of failure

Also everything is running in kubernetes isolation so my OS is immutable and consume much less disk space than NixOS (I don't have too much of it and future is looking bleak in this department)

▲clhodapp 5 hours ago | parent [-]

> plus I can easily manage multiple machines

> I prefer to bootstrap them from I laptop with a single command

Nix is great at that kind of stuff

▲edukite 3 hours ago | parent [-]

Nix will install me clickhouse on 2 devices at once, create restricted networking between 6 devices?

▲wrxd an hour ago | parent | next [-]

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.

▲clhodapp 3 hours ago | parent | prev [-]

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