···181181182182<listitem>
183183 <para>
184184- The <literal>locate</literal> service no longer indexes the nix store
184184+ The <literal>locate</literal> service no longer indexes the Nix store
185185 by default, preventing packages with potentially numerous versions from
186186- cluttering the output. Indexing the store can be activated with
187187- <literal>services.locate.includeStore = true;</literal>.
186186+ cluttering the output. Indexing the store can be activated by setting
187187+ <literal>services.locate.includeStore = true</literal>.
188188 </para>
189189</listitem>
190190
+5-5
nixos/modules/misc/locate.nix
···3535 type = types.listOf types.str;
3636 default = [ ];
3737 description = ''
3838- Extra flags to append to <command>updatedb</command>.
3838+ Extra flags to pass to <command>updatedb</command>.
3939 '';
4040 };
4141···6060 type = types.bool;
6161 default = false;
6262 description = ''
6363- Whether to include /nix/store in the locate database.
6363+ Whether to include <filename>/nix/store<filename> in the locate database.
6464 '';
6565 };
6666···7878 ''
7979 mkdir -m 0755 -p $(dirname ${toString cfg.output})
8080 exec updatedb \
8181- --localuser=${cfg.localuser} \
8282- ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
8383- --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
8181+ --localuser=${cfg.localuser} \
8282+ ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
8383+ --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
8484 '';
8585 serviceConfig.Nice = 19;
8686 serviceConfig.IOSchedulingClass = "idle";