blob: b00f61a329f9cbe0f06a12cc1f5b7b54288ac6ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# recursively search for a given regex
{
config,
lib,
pkgs,
...
}:
let
cfg = config.development.ripgrep;
in
{
options.development.ripgrep = {
enable = lib.mkEnableOption "Enables ripgrep.";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = config.programs.ripgrep.package;
description = "The ripgrep package to use.";
};
};
config = lib.mkIf cfg.enable {
programs.ripgrep = {
enable = true;
};
};
}
|