marleyos/modules/home/programs/eza/default.nix
2024-11-16 19:38:11 -08:00

33 lines
501 B
Nix

{
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"
];
};
};
}