diff options
| author | Domen Kožar <domen@enlambda.com> | 2024-12-07 11:27:23 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-07 11:27:23 +0000 |
| commit | a35b08d09efda83625bef267eb24347b446c80b8 (patch) | |
| tree | 74d4fc6fd5840044584b728bc41ebfdc0fe66265 /modules | |
| parent | 9c3d8ff051fe8e4c866c9d9b28d3ff502e1e2974 (diff) | |
| parent | 70957ab0c6a37fe72d21e1a2c273189a05c3670c (diff) | |
Merge pull request #1202 from Enzime/push-voxzmynopkkp
linux-builder: default `maxJobs` to amount of cores for Linux builder
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nix/linux-builder.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/modules/nix/linux-builder.nix b/modules/nix/linux-builder.nix index 2bcb62e..ae39547 100644 --- a/modules/nix/linux-builder.nix +++ b/modules/nix/linux-builder.nix @@ -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 |
