eza: Use separate home-manager module

Also adds the new --git-ignore feature to avoid having to manually
specify an ignore list.
This commit is contained in:
Donovan Glover 2024-04-13 09:02:38 -04:00
parent 4492f2921e
commit 6a0cc46906
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 13 additions and 2 deletions

12
home/eza.nix Normal file
View File

@ -0,0 +1,12 @@
{
programs.eza = {
enable = true;
icons = true;
extraOptions = [
"--group-directories-first"
"--no-quotes"
"--git-ignore"
];
};
}

View File

@ -40,8 +40,7 @@ in
'';
shellAliases = {
ls = "${pkgs.eza}/bin/eza --icons --group-directories-first --no-quotes -I 'lost+found'";
tree = "${pkgs.eza}/bin/eza --icons --group-directories-first --no-quotes --all --long --tree -I 'node_modules|.git|public|lost+found|target|.next|.cache|.nuxt|themes|.direnv|.wrangler|.vercel|dist'";
tree = "eza --all --long --tree";
mv = "mv -i";
cp = "cp -ia";
rg = "${pkgs.ripgrep}/bin/rg --max-columns=2000 --smart-case";