Do you know of a complete example or live config I could read through as a reference for that first method recommended?
I'd also be interested in complete examples for a working pair of remote builder and local client (both NixOS multi user), as all the documentation I've come across thus far are either:
-
intent on modifying root ssh configs in spite of security practices
-
botch use of substituters on the remote builder
- causing needles recompilation, ignoring upstream cache.nix.org
-
is awkward or incompatible with non-interactive sudo sessions
-
works for nixos build but not to switch
-
https://nix.dev/manual/nix/2.30/advanced-topics/distributed-builds
-
https://discourse.nixos.org/t/nixos-rebuild-use-remote-sudo-prompts-me-for-a-password-3-times/56003
-
https://discourse.nixos.org/t/remote-nixos-rebuild-works-with-build-but-not-with-switch/34741