30 lines
484 B
Nix
30 lines
484 B
Nix
{
|
|
options,
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.custom; let
|
|
cfg = config.apps.tools.tealdeer;
|
|
in {
|
|
options.apps.tools.tealdeer = with types; {
|
|
enable = mkBoolOpt false "Enable Tealdeer";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.tealdeer = {
|
|
enable = true;
|
|
settings = {
|
|
display = {
|
|
compact = false;
|
|
use_pager = true;
|
|
};
|
|
updates = {
|
|
auto_update = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|