Personal Nix setup
at main 474 B view raw
1{ lib, pkgs, ... }: 2 3with lib; 4let 5 rgExcludesFile = pkgs.writeTextFile { 6 name = ".rgignore"; 7 text = '' 8 *~ 9 *.map 10 ''; 11 }; 12in 13{ 14 home = { 15 packages = with pkgs; [ 16 ripgrep 17 xh 18 sd 19 fd 20 jq 21 ast-grep 22 ]; 23 shellAliases = { 24 http = "xh"; 25 sg = "ast-grep"; 26 }; 27 }; 28 29 programs.ripgrep = { 30 enable = true; 31 arguments = [ 32 "--ignore-file=${rgExcludesFile}" 33 "--smart-case" 34 ]; 35 }; 36}