···
# darwin.linux-builder {#sec-darwin-builder}
3
-
`darwin.linux-builder` provides a way to bootstrap a Linux builder on a macOS machine.
3
+
`darwin.linux-builder` provides a way to bootstrap a Linux remote builder on a macOS machine.
This requires macOS version 12.4 or later.
7
-
The builder runs on host port 31022 by default.
7
+
The remote builder runs on host port 31022 by default.
You can change it by overriding `virtualisation.darwin-builder.hostPort`.
See the [example](#sec-darwin-builder-example-flake).
···
extra-trusted-users = <your username goes here>
18
-
To launch the builder, run the following flake:
18
+
To launch the remote builder, run the following flake:
$ nix run nixpkgs#darwin.linux-builder
···
builders-use-substitutes = true
60
-
To allow Nix to connect to a builder not running on port 22, you will also need to create a new file at `/etc/ssh/ssh_config.d/100-linux-builder.conf`:
60
+
To allow Nix to connect to a remote builder not running on port 22, you will also need to create a new file at `/etc/ssh/ssh_config.d/100-linux-builder.conf`:
···
133
-
## Reconfiguring the builder {#sec-darwin-builder-reconfiguring}
133
+
## Reconfiguring the remote builder {#sec-darwin-builder-reconfiguring}
135
-
Initially you should not change the builder configuration else you will not be
136
-
able to use the binary cache. However, after you have the builder running locally
137
-
you may use it to build a modified builder with additional storage or memory.
135
+
Initially you should not change the remote builder configuration else you will not be
136
+
able to use the binary cache. However, after you have the remote builder running locally
137
+
you may use it to build a modified remote builder with additional storage or memory.
To do this, you just need to set the `virtualisation.darwin-builder.*` parameters as
in the example below and rebuild.