feat(home): Eza

This commit is contained in:
punkfairie 2024-11-16 14:26:17 -08:00
parent 768f4ff30d
commit 774e2cf818
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;
cheat = enabled;
curl = enabled;
eza = enabled;
fish = enabled;
journalctl = 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"
];
};
}