Skip to content

Commit

Permalink
Merge pull request #1202 from Enzime/push-voxzmynopkkp
Browse files Browse the repository at this point in the history
linux-builder: default `maxJobs` to amount of cores for Linux builder
  • Loading branch information
domenkozar authored Dec 7, 2024
2 parents 9c3d8ff + 70957ab commit a35b08d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/nix/linux-builder.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a35b08d

Please sign in to comment.