feat(home): Eza

This commit is contained in:
punkfairie 2024-11-16 14:26:17 -08:00
parent 77458f6c61
commit ff2df5f592
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 34 additions and 18 deletions

View file

@ -20,6 +20,7 @@ in
cava = enabled; cava = enabled;
cheat = enabled; cheat = enabled;
curl = enabled; curl = enabled;
eza = enabled;
fish = enabled; fish = enabled;
journalctl = enabled; journalctl = enabled;
neo = enabled; neo = enabled;

View file

@ -0,0 +1,33 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.eza;
in
{
options = mkEnableModule "programs.eza";
config = mkIf cfg.enable {
programs.eza = {
enable = true;
git = true;
icons = "always";
colors = "always";
extraOptions = [
"--all"
"--sort=name"
"--group-directories-first"
"--header"
"--group"
];
};
};
}

View file

@ -1,18 +0,0 @@
{ ... }:
{
programs.eza = {
enable = true;
git = true;
icons = "always";
colors = "always";
extraOptions = [
"--all"
"--sort=name"
"--group-directories-first"
"--header"
"--group"
];
};
}