{ lib, pkgs, config, ... }: { options.zpha.programs.broot.enable = lib.mkEnableOption "broot"; config = lib.mkIf config.zpha.programs.broot.enable { users.users.zaphyra.maid = { packages = [ pkgs.broot ]; file.xdg_config = { "broot/conf.hjson".text = builtins.toJSON { verbs = [ { invocation = "edit"; shortcut = "e"; key = "enter"; apply_to = "text_file"; external = "$EDITOR {file:space-separated}"; leave_broot = false; } { invocation = "create {subpath}"; execution = "$EDITOR {directory}/{subpath}"; leave_broot = false; } { invocation = "git_diff"; shortcut = "gd"; leave_broot = false; execution = "git difftool -y {file}"; } { key = "alt-pagedown"; internal = "page_down"; impacted_panel = "right"; } { key = "alt-pageup"; internal = "page_up"; impacted_panel = "right"; } ]; }; }; }; }; }