mirror of
https://github.com/nmasur/dotfiles
synced 2025-11-17 08:42:42 +00:00
35 lines
616 B
Nix
35 lines
616 B
Nix
{
|
|
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 {
|
|
|
|
programs.chawan = {
|
|
enable = true;
|
|
settings = {
|
|
external.copy-cmd = if pkgs.stdenv.isLinux then "xclip -selection clipboard -in" else "pbcopy";
|
|
};
|
|
};
|
|
|
|
# Set Chawan as the default app for manual pages
|
|
home.sessionVariables = {
|
|
MANPAGER = "${lib.getExe pkgs.chawan} -T text/x-ansi";
|
|
};
|
|
|
|
programs.fish.shellAbbrs.man = "mancha";
|
|
|
|
};
|
|
|
|
}
|