Distributed build: Difference between revisions

m Changed `nix store ping` to `nix store info`, because of the warning: 'ping' is a deprecated alias for 'info'.
 
(One intermediate revision by one other user not shown)
Line 40: Line 40:
{{Tip|The best test to check that the SSH access works for Nix is to run on your local machine:
{{Tip|The best test to check that the SSH access works for Nix is to run on your local machine:


<code>nix store ping --store ssh://<REMOTE-BUILDER></code>
<code>nix store info --store ssh://<REMOTE-BUILDER></code>


Where <code><REMOTE-BUILDER></code> is the remote builder's IP address, host address or whatever name you configure in ~/.ssh/config or /root/.ssh/config, including the user@ prefix.}}
Where <code><REMOTE-BUILDER></code> is the remote builder's IP address, host address or whatever name you configure in ~/.ssh/config or /root/.ssh/config, including the user@ prefix.}}
Line 249: Line 249:
* I can ping the store as root, but I'm getting "broken pipe" errors when trying to distribute.
* I can ping the store as root, but I'm getting "broken pipe" errors when trying to distribute.
** You may have hit bug {{Issue|46038}}. Add <code>nix.distributedBuilds = true;</code> to <code>configuration.nix</code> and <code>nixos-rebuild switch</code>.
** You may have hit bug {{Issue|46038}}. Add <code>nix.distributedBuilds = true;</code> to <code>configuration.nix</code> and <code>nixos-rebuild switch</code>.
== Tips and tricks ==
=== One-time remote build ===
For a quick, one-time remote build without needing to change any system settings, see [[Nixos-rebuild#Deploying_on_other_machines]].


== See also ==
== See also ==