diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-05-12 12:24:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-12 12:24:27 +0200 |
commit | 643b8d2126dcdb01cd7c2692c23e14718e8044c4 (patch) | |
tree | 8020de2c6c2c72256ce67da2e8063e5fbbac672a /src/libstore/globals.hh | |
parent | f60b21563990ec11d87dd4abe57b8b187d6b6fb3 (diff) | |
parent | 13185133bcdff751274e55bf29b80b4e600cd973 (diff) |
Merge pull request #8299 from urbas/max-substitution-jobs
`max-substitution-jobs` setting
Diffstat (limited to 'src/libstore/globals.hh')
-rw-r--r-- | src/libstore/globals.hh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libstore/globals.hh b/src/libstore/globals.hh index 609cf53b8..c41125523 100644 --- a/src/libstore/globals.hh +++ b/src/libstore/globals.hh @@ -159,6 +159,15 @@ public: )", {"build-max-jobs"}}; + Setting<unsigned int> maxSubstitutionJobs{ + this, 16, "max-substitution-jobs", + R"( + This option defines the maximum number of substitution jobs that Nix + will try to run in parallel. The default is `16`. The minimum value + one can choose is `1` and lower values will be interpreted as `1`. + )", + {"substitution-max-jobs"}}; + Setting<unsigned int> buildCores{ this, getDefaultCores(), |