{ inputs, ... }: { programs.yazi = { enable = true; enableFishIntegration = true; package = inputs.yazi.packages.x86_64-linux.default; initLua = ../../homes/emenel/dotfiles/dot_config/yazi/init.lua; keymap = { input.prepend_keymap = [ { on = ""; run = "shell 'ripdrag \"$@\" -x 2>/dev/null &' --confirm"; } { on = "y"; run = ["shell 'for path in \"$@\"; do echo \"file://$path\"; done | wl-copy -t text/uri-list'\n" "yank"]; } { on = ["g" "r"]; run = "shell 'ya emit cd \"$(git rev-parse --show-toplevel)\"'\n"; } ]; }; }; xdg.configFile."yazi/theme.toml".source = ../../homes/emenel/dotfiles/dot_config/yazi/theme.toml; xdg.configFile."yazi/flavors".source = ../../homes/emenel/dotfiles/dot_config/yazi/flavors; }