home: bat: make it enable-able
This commit is contained in:
parent
5b646ec174
commit
722e9c117d
11
home/bat.nix
11
home/bat.nix
|
@ -1,6 +1,13 @@
|
||||||
{ config, ... }:
|
{ config, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.home.bat;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.bat = {
|
options.my.home.bat = with lib.my; {
|
||||||
|
enable = mkDisableOption "bat configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.programs.bat = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = {
|
config = {
|
||||||
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
|
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
|
||||||
|
|
Loading…
Reference in a new issue