home: add bat config
This commit is contained in:
parent
2718be6ac9
commit
270809ca25
7 changed files with 40 additions and 2 deletions
20
home/bat.nix
Normal file
20
home/bat.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.bat;
|
||||
batTheme = config.my.theme.batTheme;
|
||||
in
|
||||
{
|
||||
options.my.home.bat = with lib; {
|
||||
enable = (mkEnableOption "bat code display tool") // { default = true; };
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.bat = {
|
||||
enable = true;
|
||||
|
||||
config = {
|
||||
theme = batTheme.name;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue