summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-08-03 13:48:43 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-08-03 13:48:43 +0200
commitff4e92f2cc96ce4b776fe5de21b54f9c2f897e52 (patch)
tree0059b7a6189ff5aafbb768b8b6ad0fc3e0cd5776
parent45bdde550537e7cf212e70d34e94afd4d5942aec (diff)
downloadnixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.tar
nixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.tar.gz
nixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.tar.bz2
nixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.tar.lz
nixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.tar.xz
nixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.tar.zst
nixlib-ff4e92f2cc96ce4b776fe5de21b54f9c2f897e52.zip
Spelling etc
-rw-r--r--nixos/doc/manual/release-notes/rl-unstable.xml6
-rw-r--r--nixos/modules/misc/locate.nix10
2 files changed, 8 insertions, 8 deletions
diff --git a/nixos/doc/manual/release-notes/rl-unstable.xml b/nixos/doc/manual/release-notes/rl-unstable.xml
index 7106690b82b0..aedc85f30699 100644
--- a/nixos/doc/manual/release-notes/rl-unstable.xml
+++ b/nixos/doc/manual/release-notes/rl-unstable.xml
@@ -181,10 +181,10 @@ nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA haskellPackages.cabal-install
 
 <listitem>
   <para>
-    The <literal>locate</literal> service no longer indexes the nix store
+    The <literal>locate</literal> service no longer indexes the Nix store
     by default, preventing packages with potentially numerous versions from
-    cluttering the output. Indexing the store can be activated with
-    <literal>services.locate.includeStore = true;</literal>.
+    cluttering the output. Indexing the store can be activated by setting
+    <literal>services.locate.includeStore = true</literal>.
   </para>
 </listitem>
 
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix
index bf05c4607295..e85e390acb6e 100644
--- a/nixos/modules/misc/locate.nix
+++ b/nixos/modules/misc/locate.nix
@@ -35,7 +35,7 @@ in {
         type = types.listOf types.str;
         default = [ ];
         description = ''
-          Extra flags to append to <command>updatedb</command>.
+          Extra flags to pass to <command>updatedb</command>.
         '';
       };
 
@@ -60,7 +60,7 @@ in {
         type = types.bool;
         default = false;
         description = ''
-          Whether to include /nix/store in the locate database.
+          Whether to include <filename>/nix/store<filename> in the locate database.
         '';
       };
 
@@ -78,9 +78,9 @@ in {
           ''
             mkdir -m 0755 -p $(dirname ${toString cfg.output})
             exec updatedb \
-            --localuser=${cfg.localuser} \
-	    ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
-            --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
+              --localuser=${cfg.localuser} \
+              ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
+              --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
           '';
         serviceConfig.Nice = 19;
         serviceConfig.IOSchedulingClass = "idle";