feat(home): Less

This commit is contained in:
punkfairie 2024-11-16 17:37:09 -08:00
parent 142b5f2bf0
commit 44f2a91627
Signed by: punkfairie
GPG key ID: A509E8F77FB9D696
3 changed files with 26 additions and 10 deletions

View file

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

View file

@ -0,0 +1,25 @@
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.less;
in
{
options = mkEnableModule "programs.less";
config = mkIf cfg.enable {
programs.less.enable = true;
home.sessionVariables = {
LESS = "-R";
};
programs.lesspipe.enable = true;
};
}

View file

@ -1,10 +0,0 @@
{ ... }:
{
programs.less.enable = true;
home.sessionVariables = {
LESS = "-R";
};
programs.lesspipe.enable = true;
}