blob: d8b0993fb7291dbd6490e7b98d094d8cf09e231b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Terminal pager
{
config,
lib,
pkgs,
...
}:
let
cfg = config.terminal.less;
in
{
options.terminal.less = {
enable = lib.mkEnableOption "Enables less.";
package = lib.mkOption {
type = lib.types.package;
readOnly = true;
default = config.programs.less.package;
description = "The less package to use.";
};
};
config = lib.mkIf cfg.enable {
programs.less = {
enable = true;
options = [
"--RAW-CONTROL-CHARS"
"--quit-if-one-screen"
"--no-init"
"--ignore-case"
];
};
};
}
|