Skip to content

Commit

Permalink
fix(home-manager/bat): use attrset for theme specification (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn authored Oct 13, 2023
1 parent a60d227 commit 4ade204
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions modules/home-manager/bat.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@ in
config = {
programs.bat = lib.mkIf enable {
config.theme = "Catppuccin-${cfg.flavour}";
themes."Catppuccin-${cfg.flavour}" = builtins.readFile (pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
}
+ "/Catppuccin-${cfg.flavour}.tmTheme");
themes."Catppuccin-${cfg.flavour}" = {
src =
pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
hash = "sha256-6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
};
file = "Catppuccin-${cfg.flavour}.tmTheme";
};
};
};
}

0 comments on commit 4ade204

Please sign in to comment.