44 lines
797 B
Nix
44 lines
797 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (config.my)
|
|
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";
|
|
};
|
|
hx = helix;
|
|
helix = {
|
|
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";
|
|
};
|
|
};
|
|
in
|
|
{
|
|
config = {
|
|
programs.man = {
|
|
enable = true;
|
|
generateCaches = true;
|
|
};
|
|
home.sessionVariables = pagers.${editor};
|
|
};
|
|
}
|