NixOS on ARM: Difference between revisions
imported>Flokli No edit summary |
imported>Thra11 No edit summary |
||
| Line 366: | Line 366: | ||
<syntaxhighlight lang="bash">nixos-rebuild switch --fast --option binary-caches http://nixos-arm.dezgeg.me/channel --option binary-cache-public-keys nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%</syntaxhighlight> | <syntaxhighlight lang="bash">nixos-rebuild switch --fast --option binary-caches http://nixos-arm.dezgeg.me/channel --option binary-cache-public-keys nixos-arm.dezgeg.me-1:xBaUKS3n17BZPKeyxL4JfbTqECsT+ysbDJz29kLFRW0=%</syntaxhighlight> | ||
==== Distributed Builds ==== | |||
Some aarch64 CPUs can run armv7l and armv6l code natively. This means you can use an aarch64 machine as a distributed builder by setting, e.g. <code>extra-platforms = armv6l-linux</code> in nix.conf on the aarch64 machine, then adding it as a builder on the armv6l machine, as decribed in the [https://nixos.wiki/wiki/Distributed_build section on distributed builds]. If you have a suitable aarch64 machine available, this can greatly reduce build times when targetting a relatively slow arm device. | |||
=== Resizing the boot partition === | === Resizing the boot partition === | ||