NixOS virtual machines on macOS: Difference between revisions
Link to Nixcademy blog post on running NixOS tests on macOS |
add section to enhance remote builder on darwin systems with x86_64 capability |
||
| Line 208: | Line 208: | ||
Note: Notice how further configuring the Linux builder uses the running Linux | Note: Notice how further configuring the Linux builder uses the running Linux | ||
builder to build the new one. | builder to build the new one. | ||
== <code>linux-builder</code>, with <code>x86_64-linux</code> emulation == | |||
Building upon previous example, the remote builder can be enhanced to build x86_64 packages without creating a second VM or builder<ref>https://github.com/nix-darwin/nix-darwin/issues/1192#issuecomment-2619629531</ref>:<syntaxhighlight lang="nix"> | |||
nix.linux-builder = { | |||
# ... | |||
systems = [ "x86_64-linux" "aarch64-linux" ]; | |||
config.boot.binfmt.emulatedSystems = [ "x86_64-linux" ]; | |||
}; | |||
</syntaxhighlight> | |||
== <code>direnv</code> == | == <code>direnv</code> == | ||