mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-01 02:13:58 +01:00
14 lines
490 B
Nix
14 lines
490 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# Whole-filesystem filename search (`locate`), backed by plocate. It complements
|
|
# `nix-index`/`nix-locate`, which only index the nix store.
|
|
#
|
|
# The database lives at /var/cache/locatedb. Hosts with an ephemeral root must
|
|
# persist /var/cache as a directory (see hosts/idols-ai/preservation.nix): plocate
|
|
# replaces the DB via a temp file + rename, which fails on a bind-mounted file.
|
|
services.locate = {
|
|
enable = true;
|
|
package = pkgs.plocate;
|
|
};
|
|
}
|