aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/ripgrep/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 03:42:25 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-24 03:42:25 +0530
commit30f8fea050f3242f0e6a2072779e706b5c8ceaf1 (patch)
treea02b517bd112d4e91fab15166a4866bff252c2d3 /modules/development/ripgrep/default.nix
parentad96214c9ab94bce925000a6059e3c68e2ff6a22 (diff)
downloadhome-manager-config-30f8fea050f3242f0e6a2072779e706b5c8ceaf1.tar.gz
home-manager-config-30f8fea050f3242f0e6a2072779e706b5c8ceaf1.zip
refactor(modules): introduce cfg local bindings and submodule option types
Diffstat (limited to 'modules/development/ripgrep/default.nix')
-rw-r--r--modules/development/ripgrep/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/development/ripgrep/default.nix b/modules/development/ripgrep/default.nix
index 16c70d0..b00f61a 100644
--- a/modules/development/ripgrep/default.nix
+++ b/modules/development/ripgrep/default.nix
@@ -2,8 +2,12 @@
{
config,
lib,
+ pkgs,
...
}:
+let
+ cfg = config.development.ripgrep;
+in
{
options.development.ripgrep = {
enable = lib.mkEnableOption "Enables ripgrep.";
@@ -15,7 +19,7 @@
};
};
- config = lib.mkIf config.development.ripgrep.enable {
+ config = lib.mkIf cfg.enable {
programs.ripgrep = {
enable = true;
};