21 lines
463 B
Nix
21 lines
463 B
Nix
|
|
# Eza — modern ls replacement with icons, git status, and long format by default.
|
||
|
|
{
|
||
|
|
config,
|
||
|
|
lib,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
with lib; let
|
||
|
|
cfg = config.base.cliTools.eza;
|
||
|
|
in {
|
||
|
|
options.base.cliTools.eza.enable = mkEnableOption "enable eza modern ls replacement";
|
||
|
|
|
||
|
|
config = mkIf cfg.enable {
|
||
|
|
programs.eza = {
|
||
|
|
enable = true;
|
||
|
|
enableFishIntegration = true;
|
||
|
|
enableBashIntegration = true;
|
||
|
|
extraOptions = ["-l" "--icons" "--git" "-a"];
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|