···3636 # /etc/nixos/configuration.nix. Do not edit it!
3737 build-users-group = nixbld
3838 build-max-jobs = ${toString (cfg.maxJobs)}
3939+ build-cores = ${toString (cfg.buildCores)}
3940 build-use-chroot = ${if cfg.useChroot then "true" else "false"}
4041 build-chroot-dirs = ${toString cfg.chrootDirs} /bin/sh=${sh} $(echo $extraPaths)
4142 binary-caches = ${toString cfg.binaryCaches}
···7273 set it to the number of CPUs in your system (e.g., 2 on an Athlon
7374 64 X2).
7475 ";
7676+ };
7777+7878+ buildCores = mkOption {
7979+ type = types.int;
8080+ default = 1;
8181+ example = 64;
8282+ description = ''
8383+ This option defines the maximum number of concurrent tasks during
8484+ one build. It affects, e.g., -j option for make. The default is 1.
8585+ Some builds may become non-deterministic with this option; use with
8686+ care! Packages will only be affected if enableParallelBuilding is
8787+ set for them.
8888+ '';
7589 };
76907791 useChroot = mkOption {