nichts/modules/services/locate.nix

20 lines
338 B
Nix
Raw Normal View History

2024-07-23 00:00:26 +02:00
{
config,
lib,
pkgs,
...
}: let
cfg = config.modules.usrEnv.services.locate;
inherit (lib) mkIf;
in {
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [plocate];
services.locate = {
enable = true;
interval = "hourly";
package = pkgs.plocate;
localuser = null;
};
};
}