26 lines
370 B
Nix
26 lines
370 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
}
|