blob: 1bfdb615648d5d6da290132b6a601b8f7e44981d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{
config,
lib,
pkgs,
...
}:
# bat - a cat clone with wings
{
options.tools.bat = {
enable = lib.mkEnableOption "Enables bat.";
};
config = lib.mkIf config.tools.bat.enable {
programs.bat = {
enable = true;
config = {
theme = "base16";
};
themes = {
base16 = {
src = pkgs.runCommand "bat-base16-theme" { } ''
mkdir -p $out
cp ${config.scheme { template = ./base16.mustache.tmTheme; }} $out/base16.tmTheme
'';
file = "base16.tmTheme";
};
};
};
};
}
|