feat(home): Man
This commit is contained in:
parent
44f2a91627
commit
e8083473e4
3 changed files with 26 additions and 9 deletions
|
@ -33,6 +33,7 @@ in
|
|||
just = enabled;
|
||||
lazygit = enabled;
|
||||
less = enabled;
|
||||
man = enabled;
|
||||
neo = enabled;
|
||||
systemctl = enabled;
|
||||
};
|
||||
|
|
25
modules/home/programs/man/default.nix
Normal file
25
modules/home/programs/man/default.nix
Normal 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!";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.man.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
MANWIDTH = "80";
|
||||
MANPAGER = "nvim +NoNeckPain '+set nowrap' +Man!";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue