nixos/locate: only set LOCATE_PATH for findutils locate

For plocate/mlocate it causes the results to be printed twice.

(cherry picked from commit dec5ef74b0)
This commit is contained in:
Sandro Jäckel 2024-06-11 00:10:09 +02:00 committed by github-actions[bot]
parent a508a44af0
commit 51d9d476d9

View File

@ -227,7 +227,9 @@ in
environment.systemPackages = [ cfg.package ];
environment.variables.LOCATE_PATH = cfg.output;
environment.variables = lib.mkIf isFindutils {
LOCATE_PATH = cfg.output;
};
environment.etc = {
# write /etc/updatedb.conf for manual calls to `updatedb`