Spelling etc

This commit is contained in:
Eelco Dolstra 2015-08-03 13:48:43 +02:00
parent 45bdde5505
commit ff4e92f2cc
2 changed files with 8 additions and 8 deletions

View file

@ -181,10 +181,10 @@ nix-env -f "<nixpkgs>" -iA haskellPackages.cabal-install
<listitem> <listitem>
<para> <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 by default, preventing packages with potentially numerous versions from
cluttering the output. Indexing the store can be activated with cluttering the output. Indexing the store can be activated by setting
<literal>services.locate.includeStore = true;</literal>. <literal>services.locate.includeStore = true</literal>.
</para> </para>
</listitem> </listitem>

View file

@ -35,7 +35,7 @@ in {
type = types.listOf types.str; type = types.listOf types.str;
default = [ ]; default = [ ];
description = '' 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; type = types.bool;
default = false; default = false;
description = '' 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}) mkdir -m 0755 -p $(dirname ${toString cfg.output})
exec updatedb \ exec updatedb \
--localuser=${cfg.localuser} \ --localuser=${cfg.localuser} \
${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \ ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
--output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags} --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
''; '';
serviceConfig.Nice = 19; serviceConfig.Nice = 19;
serviceConfig.IOSchedulingClass = "idle"; serviceConfig.IOSchedulingClass = "idle";