marleyos/modules/home/programs/ripgrep/default.nix
2024-11-16 19:41:14 -08:00

19 lines
284 B
Nix

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