programs.bat.enable
Whether to enable bat, a cat clone with wings.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.bat.package
The bat package to use.
Type: package
Default:
pkgs.bat
Declared by:
programs.bat.config
Bat configuration.
Type: attribute set of (string or list of string or boolean)
Default:
{ }
Example:
{
map-syntax = [
"*.jenkinsfile:Groovy"
"*.props:Java Properties"
];
pager = "less -FR";
theme = "TwoDark";
}
Declared by:
programs.bat.extraPackages
Additional bat packages to install.
Type: list of package
Default:
[ ]
Example:
with pkgs.bat-extras; [ batdiff batman batgrep batwatch ];
Declared by:
programs.bat.syntaxes
Additional syntaxes to provide.
Type: attribute set of (strings concatenated with “\n” or (submodule))
Default:
{ }
Example:
{
gleam = {
src = pkgs.fetchFromGitHub {
owner = "molnarmark";
repo = "sublime-gleam";
rev = "2e761cdb1a87539d827987f997a20a35efd68aa9";
hash = "sha256-Zj2DKTcO1t9g18qsNKtpHKElbRSc9nBRE2QBzRn9+qs=";
};
file = "syntax/gleam.sublime-syntax";
};
}
Declared by:
programs.bat.syntaxes.<name>.file
Subpath of the syntax file within the source, if needed.
Type: null or string
Default:
null
programs.bat.syntaxes.<name>.src
Path to the syntax folder.
Type: absolute path
programs.bat.themes
Additional themes to provide.
Type: attribute set of (strings concatenated with “\n” or (submodule))
Default:
{ }
Example:
{
dracula = {
src = pkgs.fetchFromGitHub {
owner = "dracula";
repo = "sublime"; # Bat uses sublime syntax for its themes
rev = "26c57ec282abcaa76e57e055f38432bd827ac34e";
sha256 = "019hfl4zbn4vm4154hh3bwk6hm7bdxbr1hdww83nabxwjn99ndhv";
};
file = "Dracula.tmTheme";
};
}
Declared by:
programs.bat.themes.<name>.file
Subpath of the theme file within the source, if needed.
Type: null or string
Default:
null
programs.bat.themes.<name>.src
Path to the theme folder.
Type: absolute path