about summary refs log tree commit diff
path: root/nixos/modules/misc/locate.nix
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-11-17 04:19:53 +0100
committerGitHub <noreply@github.com>2021-11-17 04:19:53 +0100
commit4c138f6bd65228d2a1f11d53079d0c110fcb90d3 (patch)
tree2ed8a2589e2fe12641e074d9c8bd57f95d078be1 /nixos/modules/misc/locate.nix
parent087657bbf0a1335627aaa56c376cd149d8e97b11 (diff)
nixos/locate: exclude by default version control systems and .cache
follows Debian and Ubuntu
Diffstat (limited to 'nixos/modules/misc/locate.nix')
-rw-r--r--nixos/modules/misc/locate.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/misc/locate.nix b/nixos/modules/misc/locate.nix
index 2f2986c2fec5a..81e7acd653ddd 100644
--- a/nixos/modules/misc/locate.nix
+++ b/nixos/modules/misc/locate.nix
@@ -157,7 +157,7 @@ in {
 
     pruneNames = mkOption {
       type = listOf str;
-      default = [];
+      default = [ ".bzr" ".cache" ".git" ".hg" ".svn" ];
       description = ''
         Directory components which should exclude paths containing them from indexing
       '';