File tree Expand file tree Collapse file tree
modules/home/theme/tokyonight Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717 cfg = config . khanelinix . theme . tokyonight ;
1818 palette = import ./colors.nix ;
19+ thunderbirdAddon = pkgs . stdenvNoCC . mkDerivation {
20+ pname = "thunderbird-addon-tokyo-night" ;
21+ version = "1.0.1" ;
22+
23+ src = pkgs . fetchurl {
24+ url = "https://addons.thunderbird.net/thunderbird/downloads/file/1020993/tokyo_night-1.0.1-tb.xpi" ;
25+ sha256 = "sha256-Vi5Talz3rWjoKmgORNvUg3S+GCpq07IalCIZN1CmsSc=" ;
26+ } ;
27+
28+ dontUnpack = true ;
29+
30+ installPhase = ''
31+ runHook preInstall
32+
33+ install -D "$src" "$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{a1377b45-90f3-4570-a869-21554f7ddc9c}.xpi"
34+
35+ runHook postInstall
36+ '' ;
37+ } ;
1938
2039 stylixAvailable = options ? stylix ;
2140in
97116 } ;
98117 } ;
99118 } ;
119+ programs . firefox . profiles . ${ config . khanelinix . user . name } . extensions . packages =
120+ mkIf config . khanelinix . programs . graphical . browsers . firefox . enable
121+ [ pkgs . firefox-addons . tokyo-night-v2 ] ;
100122
101123 khanelinix . programs . graphical . apps . thunderbird . theme =
102124 let
119141 } ;
120142 } ;
121143
144+ programs . thunderbird . profiles . ${ config . khanelinix . user . name } =
145+ mkIf config . khanelinix . programs . graphical . apps . thunderbird . enable
146+ {
147+ extensions = [ thunderbirdAddon ] ;
148+ settings . "extensions.autoDisableScopes" = 0 ;
149+ } ;
150+
122151 home = {
123152 pointerCursor = mkIf pkgs . stdenv . hostPlatform . isLinux {
124153 inherit ( config . khanelinix . theme . gtk . cursor ) name package size ;
You can’t perform that action at this time.
0 commit comments