File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717 cfg = config . khanelinix . theme . nord ;
1818 palette = import ./colors.nix ;
19+ thunderbirdAddon = pkgs . stdenvNoCC . mkDerivation {
20+ pname = "thunderbird-addon-nord-theme" ;
21+ version = "1.0" ;
22+
23+ src = pkgs . fetchurl {
24+ url = "https://addons.thunderbird.net/thunderbird/downloads/file/1019997/nord_theme-1.0-tb.xpi" ;
25+ sha256 = "sha256-3cL4HFekqpwQbPK9uBM3NZxw1hDxnB1uTIAVjbdi2K4=" ;
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}/nord.theme@example.com.xpi"
34+
35+ runHook postInstall
36+ '' ;
37+ } ;
1938 stylixAvailable = options ? stylix ;
2039in
2140{
84103 } ;
85104 } ;
86105 } ;
106+ programs . firefox . profiles . ${ config . khanelinix . user . name } . extensions . packages =
107+ mkIf config . khanelinix . programs . graphical . browsers . firefox . enable
108+ [ pkgs . firefox-addons . kristofferhagen-nord-theme ] ;
87109
88110 khanelinix . programs . graphical . apps . thunderbird . theme = {
89111 enable = true ;
100122 } ;
101123 } ;
102124
125+ programs . thunderbird . profiles . ${ config . khanelinix . user . name } =
126+ mkIf config . khanelinix . programs . graphical . apps . thunderbird . enable
127+ {
128+ extensions = [ thunderbirdAddon ] ;
129+ settings . "extensions.autoDisableScopes" = 0 ;
130+ } ;
131+
103132 home = {
104133 pointerCursor = mkIf pkgs . stdenv . hostPlatform . isLinux {
105134 inherit ( config . khanelinix . theme . gtk . cursor ) name package size ;
You can’t perform that action at this time.
0 commit comments