summaryrefslogtreecommitdiff
path: root/modules/examples/simple.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2017-07-23 14:30:36 +0200
committerDaiderd Jordan <daiderd@gmail.com>2017-07-23 14:30:36 +0200
commitb3a9587cfb3feecb91cfc9f865e62c3fa639da81 (patch)
tree2c3d78c97df563b336b71448be68dc3769d0484e /modules/examples/simple.nix
parent876b962c869247533905e3faea789aeb8424145f (diff)
bootstrap: add nix.maxJobs to simple example
Diffstat (limited to 'modules/examples/simple.nix')
-rw-r--r--modules/examples/simple.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/examples/simple.nix b/modules/examples/simple.nix
index f2ea89b..09767f9 100644
--- a/modules/examples/simple.nix
+++ b/modules/examples/simple.nix
@@ -9,9 +9,11 @@
# Create /etc/bashrc that loads the nix-darwin environment.
programs.bash.enable = true;
- programs.bash.enableCompletion = false;
# Recreate /run/current-system symlink after boot.
services.activate-system.enable = true;
+ # You should generally set this to the total number of logical cores in your system.
+ # $ sysctl -n hw.ncpu
+ nix.maxJobs = 1;
}