54 lines
950 B
Nix
54 lines
950 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
self,
|
|
...
|
|
}: {
|
|
programs = {
|
|
fzf = {
|
|
enable = true;
|
|
enableBashIntegration = true;
|
|
};
|
|
|
|
bash = {
|
|
sessionVariables = {
|
|
inherit (config.home.sessionVariables) RIPGREP_CONFIG_PATH;
|
|
};
|
|
|
|
shellAliases = {
|
|
rg = "rga";
|
|
cat = "bat ";
|
|
man = "BAT_THEME='default' batman ";
|
|
};
|
|
};
|
|
|
|
ripgrep = {
|
|
enable = true;
|
|
package = pkgs.ripgrep-all;
|
|
|
|
arguments = [
|
|
"--max-columns=150"
|
|
"--max-columns-preview"
|
|
"--hidden"
|
|
"--glob=!.git/*"
|
|
"--smart-case"
|
|
"--sort"
|
|
"path"
|
|
];
|
|
};
|
|
|
|
jq.enable = true;
|
|
htop.enable = true;
|
|
|
|
bat = {
|
|
enable = true;
|
|
|
|
config.theme = "dracula-bat";
|
|
themes.dracula-bat.src = self.scopedPackages.${pkgs.system}.dracula.bat;
|
|
|
|
extraPackages = builtins.attrValues {
|
|
inherit (pkgs.bat-extras) batman;
|
|
};
|
|
};
|
|
};
|
|
}
|