nichts/modules/services/locate.nix
2024-07-23 00:00:32 +02:00

19 lines
338 B
Nix

{
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;
};
};
}