Probably not in a working state at the moment, but home-manager will build. Needs proper configuring to be used
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}";
|
|
};
|
|
}
|