marleyos/modules/home/programs/ripgrep/default.nix

20 lines
284 B
Nix
Raw Normal View History

2024-11-16 19:41:14 -08:00
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.ripgrep;
in
{
options = mkEnableModule "programs.ripgrep";
config = mkIf cfg.enable {
programs.ripgrep.enable = true;
};
}