nixos-config/user/man.nix

29 lines
756 B
Nix
Raw Normal View History

2022-11-07 23:57:34 -03:00
{ config, pkgs, lib, inputs, ... }:
2023-05-11 11:20:47 -03:00
let inherit (pkgs.uservars) key theme color accent font desktop editor;
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
}