Files
cnix/modules/nixos/services/locate/default.nix
2025-01-28 18:24:50 +01:00

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