Merge pull request #167393 from iblech/patch-docs-cc

nixos-rebuild, switch-to-configuration: document and protect against cross compilation subtlety
This commit is contained in:
Janne Heß
2022-04-14 12:30:39 +02:00
committed by GitHub
2 changed files with 20 additions and 0 deletions

View File

@@ -548,6 +548,14 @@
(<replaceable>user@host</replaceable>). You can also set ssh options by
defining the <envar>NIX_SSHOPTS</envar> environment variable.
</para>
<para>
Note that <command>nixos-rebuild</command> honors the
<literal>nixpkgs.crossSystem</literal> setting of the given configuration
but disregards the true architecture of the target host. Hence the
<literal>nixpkgs.crossSystem</literal> setting has to match the target
platform or else activation will fail.
</para>
</listitem>
</varlistentry>