nixos/locate: only set LOCATE_PATH for findutils locate

For plocate/mlocate it causes the results to be printed twice.
This commit is contained in:
Sandro Jäckel 2024-06-11 00:10:09 +02:00
parent d2943a89bb
commit dec5ef74b0
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

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`