feat(home): Less
This commit is contained in:
parent
142b5f2bf0
commit
44f2a91627
3 changed files with 26 additions and 10 deletions
|
@ -32,6 +32,7 @@ in
|
|||
journalctl = enabled;
|
||||
just = enabled;
|
||||
lazygit = enabled;
|
||||
less = enabled;
|
||||
neo = enabled;
|
||||
systemctl = enabled;
|
||||
};
|
||||
|
|
25
modules/home/programs/less/default.nix
Normal file
25
modules/home/programs/less/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.less.enable = true;
|
||||
|
||||
home.sessionVariables = {
|
||||
LESS = "-R";
|
||||
};
|
||||
|
||||
programs.lesspipe.enable = true;
|
||||
}
|
Loading…
Reference in a new issue