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 {
|
maxJobs = mkOption {
|
||||||
type = types.ints.positive;
|
type = types.ints.positive;
|
||||||
default = 1;
|
default = cfg.package.nixosConfig.virtualisation.cores;
|
||||||
example = 4;
|
defaultText = ''
|
||||||
|
The `virtualisation.cores` of the build machine's final NixOS configuration.
|
||||||
|
'';
|
||||||
|
example = 2;
|
||||||
description = ''
|
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
|
The number of concurrent jobs the Linux builder machine supports. The
|
||||||
build machine will enforce its own limits, but this allows hydra
|
build machine will enforce its own limits, but this allows hydra
|
||||||
to schedule better since there is no work-stealing between build
|
to schedule better since there is no work-stealing between build
|
||||||
|
|
Loading…
Reference in a new issue