2025-05-03 20:40:22 +08:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
|
|
|
|
cfg = config.youthlic.programs.eza;
|
2025-06-11 22:13:26 +08:00
|
|
|
fish-cfg = config.youthlic.programs.fish;
|
|
|
|
|
bash-cfg = config.youthlic.programs.bash;
|
|
|
|
|
ion-cfg = config.youthlic.programs.ion;
|
2025-05-03 20:40:22 +08:00
|
|
|
in {
|
|
|
|
|
options = {
|
|
|
|
|
youthlic.programs.eza = {
|
|
|
|
|
enable = lib.mkEnableOption "eza";
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-06-11 22:13:26 +08:00
|
|
|
config = lib.mkMerge [
|
|
|
|
|
(lib.mkIf cfg.enable {
|
|
|
|
|
programs.eza = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
(lib.mkIf (cfg.enable && fish-cfg.enable) {
|
|
|
|
|
programs.eza.enableFishIntegration = true;
|
|
|
|
|
})
|
|
|
|
|
(lib.mkIf (cfg.enable && bash-cfg.enable) {
|
|
|
|
|
programs.eza.enableBashIntegration = true;
|
|
|
|
|
})
|
|
|
|
|
(lib.mkIf (cfg.enable && ion-cfg.enable) {
|
|
|
|
|
programs.eza.enableIonIntegration = true;
|
|
|
|
|
})
|
|
|
|
|
];
|
2025-05-03 20:40:22 +08:00
|
|
|
}
|