use yazi outside of helix and chawan as manpager

This commit is contained in:
Noah Masur
2025-11-02 17:01:34 -05:00
parent aea3e95ef5
commit ebbc9c5a5d
5 changed files with 45 additions and 13 deletions

View File

@@ -0,0 +1,25 @@
{
config,
pkgs,
lib,
...
}:
let
cfg = config.nmasur.presets.programs.chawan;
in
{
options.nmasur.presets.programs.chawan.enable = lib.mkEnableOption "chawan TUI web browser";
config = lib.mkIf cfg.enable {
# Set Chawan as the default app for manual pages
home.sessionVariables = {
MANPAGER = "${lib.getExe pkgs.chawan} -T text/x-ansi";
};
};
}