feat(home): Man

This commit is contained in:
punkfairie 2024-11-16 18:29:01 -08:00
parent 44f2a91627
commit e8083473e4
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 26 additions and 9 deletions

View file

@ -33,6 +33,7 @@ in
just = enabled; just = enabled;
lazygit = enabled; lazygit = enabled;
less = enabled; less = enabled;
man = enabled;
neo = enabled; neo = enabled;
systemctl = enabled; systemctl = enabled;
}; };

View file

@ -0,0 +1,25 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.man;
in
{
options = mkEnableModule "programs.man";
config = mkIf cfg.enable {
programs.man.enable = true;
home.sessionVariables = {
MANWIDTH = "80";
# TODO: Only set this is nvim is installed. Also install plugin here?
MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!";
};
};
}

View file

@ -1,9 +0,0 @@
{ ... }:
{
programs.man.enable = true;
home.sessionVariables = {
MANWIDTH = "80";
MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!";
};
}