22 lines
473 B
Nix
22 lines
473 B
Nix
|
{
|
||
|
lib,
|
||
|
catppuccinVariant ? "Mocha",
|
||
|
...
|
||
|
}: {
|
||
|
xdg.configFile = let
|
||
|
variants = ["Latte" "Frappe" "Macchiato" "Mocha"];
|
||
|
mkVariant = variant: let
|
||
|
fname = "catppuccin${variant}.tmTheme";
|
||
|
in {
|
||
|
name = "bat/themes/${fname}";
|
||
|
value = {source = ./. + "/${fname}";};
|
||
|
};
|
||
|
in
|
||
|
builtins.listToAttrs
|
||
|
(lib.lists.forEach variants mkVariant);
|
||
|
programs.bat = {
|
||
|
enable = true;
|
||
|
config.theme = "catppuccin${catppuccinVariant}";
|
||
|
};
|
||
|
}
|