22 lines
326 B
Nix
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;
|
|
};
|
|
};
|
|
}
|