NixOS virtual machines on macOS: Difference between revisions
m Correct Further reading heading |
add section to enhance remote builder on darwin systems with x86_64 capability |
||
| (2 intermediate revisions by one other user not shown) | |||
| 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> == | ||
| Line 289: | Line 298: | ||
== Further reading == | == Further reading == | ||
* | * [https://nixcademy.com/posts/macos-linux-builder/ Build and Deploy Linux Systems from macOS], Nixcademy | ||
* [https://nixcademy.com/posts/running-nixos-integration-tests-on-macos/ Run NixOS Integration Tests on macOS], Nixcademy | |||
[[Category:macOS]] | [[Category:macOS]] | ||
[[Category:nix-darwin]] | [[Category:nix-darwin]] | ||
[[Category:Tutorial]] | [[Category:Tutorial]] | ||