nixos/modules/home/shell/bat.nix

23 lines
448 B
Nix
Raw Permalink Normal View History

{
lib,
config,
...
}: let
cfg = config.myConfig.shell.bat;
in {
options.myConfig.shell.bat = {
enable = lib.mkEnableOption "bat, a cat replacement with syntax highlighting";
};
config = lib.mkIf cfg.enable {
programs.bat = {
enable = true;
config = {
map-syntax = ["*.ino:C++"];
theme = "Solarized (dark)";
style = "numbers,changes,header-filename,header-filesize";
};
};
};
}