mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
linux-builder: default maxJobs
to amount of cores for Linux builder
This commit is contained in:
parent
6ab87b7c84
commit
70957ab0c6
1 changed files with 9 additions and 2 deletions
|
@ -61,9 +61,16 @@ in
|
|||
|
||||
maxJobs = mkOption {
|
||||
type = types.ints.positive;
|
||||
default = 1;
|
||||
example = 4;
|
||||
default = cfg.package.nixosConfig.virtualisation.cores;
|
||||
defaultText = ''
|
||||
The `virtualisation.cores` of the build machine's final NixOS configuration.
|
||||
'';
|
||||
example = 2;
|
||||
description = ''
|
||||
Instead of setting this directly, you should set
|
||||
{option}`nix.linux-builder.config.virtualisation.cores` to configure
|
||||
the amount of cores the Linux builder should have.
|
||||
|
||||
The number of concurrent jobs the Linux builder machine supports. The
|
||||
build machine will enforce its own limits, but this allows hydra
|
||||
to schedule better since there is no work-stealing between build
|
||||
|
|
Loading…
Reference in a new issue