feat(home): ripgrep
This commit is contained in:
parent
fc7e31558f
commit
1e629226db
3 changed files with 20 additions and 6 deletions
|
@ -37,6 +37,7 @@ in
|
|||
ncmpcpp = enabled;
|
||||
neo = enabled;
|
||||
rbw = enabled;
|
||||
ripgrep = enabled;
|
||||
systemctl = enabled;
|
||||
};
|
||||
xorg = {
|
||||
|
|
19
modules/home/programs/ripgrep/default.nix
Normal file
19
modules/home/programs/ripgrep/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.ripgrep = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue