rebuild: Rewrite to build remotely and add `--all` flag.

A few other things:

  • Remote builds are now handled with ssh and rsync instead of --target-host and building locally
  • --all runs builds in parallel across all hosts with an ending report
  • Logging is less spammy and I added a nice loading bar that runs in the background
  • Overall, many errors are better handled using complete and checking exit_code on external commands as well as using conditionals for things like 'lib-notify' etc.
  • 'nh' will now fall back to 'nix run nixpkgs#nh' (useful for new hosts)

I doubt this is the final version but I spent too long on it lol…

Created by  PlumJam  on February 3, 2026
3CJ46F2EWV5MKVQODGD2O4UX6QKMUW6UO7HUSOGNG7WE3MRFL2QQC
Change contents