all repos — nixfiles @ 7b4162333a7774d5b1fe0848995d8e316686ff64

System and user configuration, managed by nix and home-manager

base: use ripgrep module to supply custom package and arguments
Alan Pearce alan@alanpearce.eu
Sun, 20 Aug 2023 18:06:44 +0200
commit

7b4162333a7774d5b1fe0848995d8e316686ff64

parent

a1e7e0bc3e2cf040d24580ecfe3f73899b358aa1

2 files changed, 7 insertions(+), 6 deletions(-)

jump to
M user/settings/base.nixuser/settings/base.nix
@@ -52,12 +52,18 @@ theme = "gruvbox-light";     };
   };
   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
M user/settings/development/base.nixuser/settings/development/base.nix
@@ -39,11 +39,6 @@ colima       docker-client
     ];
 
-  nixpkgs.overlays = [
-    (self: super: {
-      ripgrep = super.ripgrep.override { withPCRE2 = true; };
-    })
-  ];
   home.sessionVariables = {
     FLY_NO_UPDATE_CHECK = "1";
     LIMA_INSTANCE = "nixos";