Files
cnix/modules/nixos/services/locate/default.nix
2025-08-29 15:25:40 +02:00

22 lines
326 B
Nix

{
pkgs,
config,
lib,
...
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.nixos.services.locate;
in
{
options = {
nixos.services.locate.enable = mkEnableOption "Enables plocate";
};
config = mkIf cfg.enable {
services.locate = {
enable = true;
package = pkgs.plocate;
};
};
}