nixos-config/user/man.nix

44 lines
797 B
Nix
Raw Permalink Normal View History

{
config,
pkgs,
lib,
inputs,
...
}:
let
2024-06-05 01:18:48 -03:00
inherit (config.my)
key
theme
color
accent
font
desktop
editor
;
2023-05-11 11:20:47 -03:00
pagers = rec {
kak = kakoune;
kakoune = {
PAGER = "${pkgs.kak-pager}/bin/kak-pager";
MANPAGER = "${pkgs.kak-man-pager}/bin/kak-man-pager";
SYSTEMD_PAGER = "${pkgs.kak-pager}/bin/kak-pager";
SYSTEMD_PAGERSECURE = "1";
2022-11-07 23:57:34 -03:00
};
2023-05-11 11:20:47 -03:00
hx = helix;
helix = {
2022-11-07 23:57:34 -03:00
PAGER = "${pkgs.kak-pager}/bin/kak-pager";
MANPAGER = "${pkgs.kak-man-pager}/bin/kak-man-pager";
SYSTEMD_PAGER = "${pkgs.kak-pager}/bin/kak-pager";
SYSTEMD_PAGERSECURE = "1";
2022-11-07 23:57:34 -03:00
};
};
2023-05-11 11:20:47 -03:00
in
{
config = {
programs.man = {
enable = true;
generateCaches = true;
};
home.sessionVariables = pagers.${editor};
};
2022-11-07 23:57:34 -03:00
}