diff options
| author | Michael Hoang <Enzime@users.noreply.github.com> | 2023-08-03 07:36:24 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-03 07:36:24 +1000 |
| commit | d3529322dcaaddf0c50cb277c9c2a355f3a36a3b (patch) | |
| tree | 6abdb83e8191767c360d4394e526715d4623b76c /modules | |
| parent | 16c07487ac9bc59f58b121d13160c67befa3342e (diff) | |
| parent | 97e978626e8beaa89aa2472ea7f3704c176316cd (diff) | |
Merge pull request #753 from lilyball/linux-builder-maxJobs
linux-builder: add maxJobs option
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/nix/linux-builder.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/nix/linux-builder.nix b/modules/nix/linux-builder.nix index 1796a30..0d473d3 100644 --- a/modules/nix/linux-builder.nix +++ b/modules/nix/linux-builder.nix @@ -42,6 +42,17 @@ in without changing this option otherwise you may not be able to build the Linux builder. ''; }; + + maxJobs = mkOption { + type = types.ints.positive; + default = 1; + example = 4; + description = lib.mdDoc '' + This option specifies the maximum number of jobs to run on the Linux builder at once. + + This sets the corresponding `nix.buildMachines.*.maxJobs` option. + ''; + }; }; config = mkIf cfg.enable { @@ -88,6 +99,7 @@ in system = "${stdenv.hostPlatform.uname.processor}-linux"; supportedFeatures = [ "kvm" "benchmark" "big-parallel" ]; publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUpCV2N4Yi9CbGFxdDFhdU90RStGOFFVV3JVb3RpQzVxQkorVXVFV2RWQ2Igcm9vdEBuaXhvcwo="; + inherit (cfg) maxJobs; }]; nix.settings.builders-use-substitutes = true; |
