summaryrefslogtreecommitdiffstats
path: root/nixos/modules
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-03-16 21:17:48 +0100
committerGitHub <noreply@github.com>2022-03-16 21:17:48 +0100
commit99f75e17d3bc5e0aaf2b4d8226e8ec2a07d004a3 (patch)
treeda15ff7a3316a4a0023016cace30b827c9bc4c9a /nixos/modules
parent526f424d8bb662da918a768e41b7bd9de3422065 (diff)
parenta65930ca21b15feb290edf3f88d210f81c964322 (diff)
Merge pull request #164270 from alyssais/locate-pruneNames
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/misc/locate.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix
index 66a49b0b888f..204a89143008 100644
--- a/nixos/modules/misc/locate.nix
+++ b/nixos/modules/misc/locate.nix
@@ -183,7 +183,11 @@ in
pruneNames = mkOption {
type = listOf str;
- default = [ ".bzr" ".cache" ".git" ".hg" ".svn" ];
+ default = lib.optionals (!isFindutils) [ ".bzr" ".cache" ".git" ".hg" ".svn" ];
+ defaultText = literalDocBook ''
+ <literal>[ ".bzr" ".cache" ".git" ".hg" ".svn" ]</literal>, if
+ supported by the locate implementation (i.e. mlocate or plocate).
+ '';
description = ''
Directory components which should exclude paths containing them from indexing
'';