NixOS on ARM: Difference between revisions
imported>Thefloweringash Replace external binfmt module with NixOS bintfmt module |
imported>Thefloweringash m Fix formatting |
||
| Line 321: | Line 321: | ||
It is also possible to compile for aarch64 on your non-aarch64 local machine, or a remote builder, by registering QEMU as a binfmt wrapper for the aarch64 architecture. This <b>wrapper uses emulation</b> and will therefore be slower than comparable native machines. | It is also possible to compile for aarch64 on your non-aarch64 local machine, or a remote builder, by registering QEMU as a binfmt wrapper for the aarch64 architecture. This <b>wrapper uses emulation</b> and will therefore be slower than comparable native machines. | ||
To enable the binfmt wrapper on NixOS, add the following to | To enable the binfmt wrapper on NixOS, add the following to <code>configuration.nix</code> | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||