···181182<listitem>
183 <para>
184- The <literal>locate</literal> service no longer indexes the nix store
185 by default, preventing packages with potentially numerous versions from
186- cluttering the output. Indexing the store can be activated with
187- <literal>services.locate.includeStore = true;</literal>.
188 </para>
189</listitem>
190
···181182<listitem>
183 <para>
184+ The <literal>locate</literal> service no longer indexes the Nix store
185 by default, preventing packages with potentially numerous versions from
186+ cluttering the output. Indexing the store can be activated by setting
187+ <literal>services.locate.includeStore = true</literal>.
188 </para>
189</listitem>
190
+5-5
nixos/modules/misc/locate.nix
···35 type = types.listOf types.str;
36 default = [ ];
37 description = ''
38- Extra flags to append to <command>updatedb</command>.
39 '';
40 };
41···60 type = types.bool;
61 default = false;
62 description = ''
63- Whether to include /nix/store in the locate database.
64 '';
65 };
66···78 ''
79 mkdir -m 0755 -p $(dirname ${toString cfg.output})
80 exec updatedb \
81- --localuser=${cfg.localuser} \
82- ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
83- --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
84 '';
85 serviceConfig.Nice = 19;
86 serviceConfig.IOSchedulingClass = "idle";
···35 type = types.listOf types.str;
36 default = [ ];
37 description = ''
38+ Extra flags to pass to <command>updatedb</command>.
39 '';
40 };
41···60 type = types.bool;
61 default = false;
62 description = ''
63+ Whether to include <filename>/nix/store<filename> in the locate database.
64 '';
65 };
66···78 ''
79 mkdir -m 0755 -p $(dirname ${toString cfg.output})
80 exec updatedb \
81+ --localuser=${cfg.localuser} \
82+ ${optionalString (!cfg.includeStore) "--prunepaths='/nix/store'"} \
83+ --output=${toString cfg.output} ${concatStringsSep " " cfg.extraFlags}
84 '';
85 serviceConfig.Nice = 19;
86 serviceConfig.IOSchedulingClass = "idle";