about summary refs log tree commit diff
path: root/nix.conf.example
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-10T20·19+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-10T20·19+0000
commitd19b6521fc5f28f821562f2f93cf9c772a5d4582 (patch)
treefb1a6ae1e0d0273d36477ca21f9b20089927867a /nix.conf.example
parent3e239a37ff6f19f2072f70881f8bce748d447c68 (diff)
* New configuration setting `build-max-jobs' which sets the default
  for the `-j' flag (i.e., the maximum number of jobs to execute in
  parallel).  Useful on multi-processor machines.

Diffstat (limited to 'nix.conf.example')
-rw-r--r--nix.conf.example10
1 files changed, 10 insertions, 0 deletions
diff --git a/nix.conf.example b/nix.conf.example
index 13b4cfa3d99b..47973ce4e743 100644
--- a/nix.conf.example
+++ b/nix.conf.example
@@ -68,6 +68,16 @@
 #env-keep-derivations = false
 
 
+### Option `build-max-jobs'
+#
+# This option defines the maximum number of jobs that Nix will try to
+# build in parallel.  The default is 1.  You should generally set it
+# to the number of CPUs in your system (e.g., 2 on a Athlon 64 X2).
+# It can be overriden using the `--max-jobs' / `-j' command line
+# switch.
+#build-max-jobs = 1
+
+
 ### Option `build-allow-root'
 #
 # This option controls Nix's behaviour when it is invoked under the