Skip to content

Commit 47bc318

Browse files
committed
Expand the instructions for Linux builds on macOS
1 parent 3af974c commit 47bc318

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

manuscript/Setup.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,19 @@ Now that you've installed Nix I'll show you how to launch a NixOS virtual machin
166166

167167
### macOS-specific instructions
168168

169-
If you are using macOS, then follow the instructions in the [Nixpkgs manual](https://nixos.org/manual/nixpkgs/stable/#sec-darwin-builder) to set up a local Linux builder. We'll need this builder to create other NixOS machines, since they require Linux build products.
169+
If you are using macOS, then follow the instructions in the [Nixpkgs manual](https://nixos.org/manual/nixpkgs/unstable/#sec-darwin-builder) to set up a local Linux builder. We'll need this builder to create other NixOS machines, since they require Linux build products.
170+
171+
In particular, you will need to leave that builder running in the background while following the remaining examples in this chapter. In other words, in one terminal window you will need to run:
172+
173+
```bash
174+
$ nix run nixpkgs#darwin.builder
175+
```
176+
177+
… and you will need that to be running whenever you need to build a NixOS system. However, you can shut down the builder down when you're not using it by giving the builder the `shutdown now` command.
178+
179+
{blurb, class:warning}
180+
The `nix run nixpkgs#darwin.builder` command is not enough to set up Linux builds on macOS. Read and follow the full set of instructions from the Nixpkgs manual linked above.
181+
{/blurb}
170182

171183
If you are using Linux (including NixOS or the Windows Subsystem for Linux) you can skip to the next step.
172184

0 commit comments

Comments
 (0)