home: bat: make it enable-able
This commit is contained in:
parent
5b646ec174
commit
722e9c117d
1 changed files with 9 additions and 2 deletions
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;
|
||||
config = {
|
||||
pager = with config.home.sessionVariables; "${PAGER} ${LESS}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue