fix(home-manager/bat): use attrset for theme specification (#43)
This commit is contained in:
parent
a60d227622
commit
4ade204012
1 changed files with 11 additions and 8 deletions
|
@ -14,14 +14,17 @@ in
|
||||||
config = {
|
config = {
|
||||||
programs.bat = lib.mkIf enable {
|
programs.bat = lib.mkIf enable {
|
||||||
config.theme = "Catppuccin-${cfg.flavour}";
|
config.theme = "Catppuccin-${cfg.flavour}";
|
||||||
themes."Catppuccin-${cfg.flavour}" = builtins.readFile (pkgs.fetchFromGitHub
|
themes."Catppuccin-${cfg.flavour}" = {
|
||||||
{
|
src =
|
||||||
owner = "catppuccin";
|
pkgs.fetchFromGitHub
|
||||||
repo = "bat";
|
{
|
||||||
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
owner = "catppuccin";
|
||||||
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
repo = "bat";
|
||||||
}
|
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
|
||||||
+ "/Catppuccin-${cfg.flavour}.tmTheme");
|
hash = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
|
||||||
|
};
|
||||||
|
file = "Catppuccin-${cfg.flavour}.tmTheme";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue