Files
nixos-config/modules/user/yazi/default.nix
2025-04-17 10:24:54 -05:00

23 lines
453 B
Nix

{ config, lib, pkgs, ...}:
let
cfg = config.userSettings.yazi;
in {
options = {
userSettings.yazi = {
enable = lib.mkEnableOption "Enable yazi TUI file manager";
};
};
config = lib.mkIf cfg.enable {
programs.yazi = {
enable = true;
enableZshIntegration = true;
keymap.manager.prepend_keymap =
[
{ run = "shell ' \"$0\"' --cursor=0 --interactive"; on = [ "@" ]; }
];
};
};
}