Author: MarcWeber
Date: 2010-06-15 19:04:06 +0000 (Tue, 15 Jun 2010)
New Revision: 22286

You can view the changes in this commit at:
   https://svn.nixos.org/viewvc/nix?rev=22286&view=rev

Modified:
   nixos/trunk/modules/services/misc/nix-daemon.nix

Log:
example how to pass options to nix-daemon

Changes:

Modified: nixos/trunk/modules/services/misc/nix-daemon.nix
===================================================================
--- nixos/trunk/modules/services/misc/nix-daemon.nix    2010-06-15 19:00:58 UTC 
(rev 22285)
+++ nixos/trunk/modules/services/misc/nix-daemon.nix    2010-06-15 19:04:06 UTC 
(rev 22286)
@@ -162,6 +162,10 @@
         internal = true;
         default = "";
         merge = mergeStringOption;
+        example = ''
+          export NIX_TARGET_LOAD=$(( 3 * $(${pkgs.coreutils}/bin/nproc) / 2 ))
+          export NIX_MAX_PARALLELIZATION=$NIX_TARGET_LOAD
+        '';
         description = "
           Environment variables used by Nix.
         ";

_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to