diff --git a/home-modules/email.nix b/home-modules/email.nix index b3e00d4..49b6d58 100755 --- a/home-modules/email.nix +++ b/home-modules/email.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, host, rice, secrets, ... }: +{ pkgs, lib, host, user, rice, secrets, ... }: lib.mkIf (host != "NxACE") { home.packages = with pkgs; [ @@ -6,8 +6,7 @@ lib.mkIf (host != "NxACE") ]; - programs.thunderbird = - let + programs.thunderbird = let inherit (lib.generators) toJSON; extensions = toJSON {} { "default-theme@mozilla.org" = "5787f490-29b8-436e-a111-640da8590790"; @@ -22,7 +21,7 @@ lib.mkIf (host != "NxACE") in { enable = true; profiles = { - default = { + "${user}" = { isDefault = true; settings = with rice.color; { "calendar.alarms.showmissed" = false; @@ -47,7 +46,18 @@ lib.mkIf (host != "NxACE") "mailnews.headers.showReferences" = true; "mailnews.headers.showSender" = true; "mailnews.headers.showUserAgent" = true; + "toolkit.legacyUserProfileCustomizations.stylesheets" = true; }; + userChrome = with rice.color; /* css */ '' + * { + color: ${rice.lib.hex-to-rgb-comma-string foreground} !important; + background-color: rgba(${rice.lib.hex-to-rgb-comma-string background}, ${builtins.toString rice.transparency}) !important; + border: none !important; + } + treechildren::-moz-tree-row(odd), treechildren::-moz-tree-row(even) { + background-color: rgba(${rice.lib.hex-to-rgb-comma-string background}, ${builtins.toString rice.transparency}) !important; + } + ''; }; }; }; @@ -76,7 +86,7 @@ lib.mkIf (host != "NxACE") }; thunderbird = { enable = true; - profiles = [ "default" ]; + profiles = [ "nx2" ]; # The id given as argument is an automatically generated account identifier. settings = OAuth2Settings; }; @@ -96,7 +106,7 @@ lib.mkIf (host != "NxACE") }; thunderbird = { enable = true; - profiles = [ "default" ]; + profiles = [ "nx2" ]; # The id given as argument is an automatically generated account identifier. settings = OAuth2Settings; }; @@ -127,7 +137,7 @@ lib.mkIf (host != "NxACE") }; thunderbird = { enable = true; - profiles = [ "default" ]; + profiles = [ "nx2" ]; settings = id: { "mail.server.server_${id}.fcc_folder" = "imap://${un}%40hs-mittweida.de@xc.hs-mittweida.de/Sent"; };