summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2023-08-20 18:06:44 +0200
committerAlan Pearce2023-08-20 18:07:18 +0200
commit7b4162333a7774d5b1fe0848995d8e316686ff64 (patch)
treeb417dfc53e2bf7d90a21d299f9b0f540d10ca534 /user/settings
parenta1e7e0bc3e2cf040d24580ecfe3f73899b358aa1 (diff)
downloadnixfiles-7b4162333a7774d5b1fe0848995d8e316686ff64.tar.lz
nixfiles-7b4162333a7774d5b1fe0848995d8e316686ff64.tar.zst
nixfiles-7b4162333a7774d5b1fe0848995d8e316686ff64.zip
base: use ripgrep module to supply custom package and arguments
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/base.nix8
-rw-r--r--user/settings/development/base.nix5
2 files changed, 7 insertions, 6 deletions
diff --git a/user/settings/base.nix b/user/settings/base.nix
index c3691c53..49ff04bf 100644
--- a/user/settings/base.nix
+++ b/user/settings/base.nix
@@ -52,12 +52,18 @@
     };
   };
   programs.nix-index-database.comma.enable = true;
+  programs.ripgrep = {
+    enable = true;
+    package = pkgs.ripgrep.override { withPCRE2 = true; };
+    arguments = [
+      "--smart-case"
+    ];
+  };
   home.packages = with pkgs;
     [
       pv
       fd
       sd
-      ripgrep
       knot-dns
       dateutils
       moreutils
diff --git a/user/settings/development/base.nix b/user/settings/development/base.nix
index ff59df87..f619324f 100644
--- a/user/settings/development/base.nix
+++ b/user/settings/development/base.nix
@@ -39,11 +39,6 @@ in
       docker-client
     ];
 
-  nixpkgs.overlays = [
-    (self: super: {
-      ripgrep = super.ripgrep.override { withPCRE2 = true; };
-    })
-  ];
   home.sessionVariables = {
     FLY_NO_UPDATE_CHECK = "1";
     LIMA_INSTANCE = "nixos";