Skip to content

Commit c3e2280

Browse files
committed
feat(catppuccin): add browser theme addons
Install Catppuccin browser and mail theme add-ons from the Catppuccin theme module so enabling the module carries its Firefox and Thunderbird theme integration.
1 parent 4585a82 commit c3e2280

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

modules/home/theme/catppuccin/default.nix

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,25 @@ let
2222

2323
cfg = config.khanelinix.theme.catppuccin;
2424
inherit (pkgs.stdenv.hostPlatform) isLinux;
25+
thunderbirdAddon = pkgs.stdenvNoCC.mkDerivation {
26+
pname = "thunderbird-addon-catppuccin-macchiatio-unofficial";
27+
version = "1.1";
28+
29+
src = pkgs.fetchurl {
30+
url = "https://addons.thunderbird.net/thunderbird/downloads/file/1040515/catppuccin_macchiatio_unofficial-1.1-tb.xpi";
31+
sha256 = "sha256-F/TjydQ39QZw+g2KYN0EGpf0SDgZF+m9hxcJHOHqmsQ=";
32+
};
33+
34+
dontUnpack = true;
35+
36+
installPhase = ''
37+
runHook preInstall
38+
39+
install -D "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/macchitiounofficial@addons.thunderbird.net.xpi"
40+
41+
runHook postInstall
42+
'';
43+
};
2544
in
2645
{
2746
imports = [
@@ -115,6 +134,16 @@ in
115134
border = palette.colors.overlay0.hex;
116135
};
117136
};
137+
programs.firefox.profiles.${config.khanelinix.user.name}.extensions.packages =
138+
mkIf config.khanelinix.programs.graphical.browsers.firefox.enable
139+
[ pkgs.firefox-addons.catppuccin-mocha-mauve ];
140+
141+
programs.thunderbird.profiles.${config.khanelinix.user.name} =
142+
mkIf config.khanelinix.programs.graphical.apps.thunderbird.enable
143+
{
144+
extensions = [ thunderbirdAddon ];
145+
settings."extensions.autoDisableScopes" = 0;
146+
};
118147
}
119148
(lib.optionalAttrs (inputs ? catppuccin && inputs.catppuccin ? homeModules) {
120149
catppuccin = {

0 commit comments

Comments
 (0)