thunderbird css
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ pkgs, lib, host, rice, secrets, ... }:
|
{ pkgs, lib, host, user, rice, secrets, ... }:
|
||||||
lib.mkIf (host != "NxACE")
|
lib.mkIf (host != "NxACE")
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -6,8 +6,7 @@ lib.mkIf (host != "NxACE")
|
|||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
programs.thunderbird =
|
programs.thunderbird = let
|
||||||
let
|
|
||||||
inherit (lib.generators) toJSON;
|
inherit (lib.generators) toJSON;
|
||||||
extensions = toJSON {} {
|
extensions = toJSON {} {
|
||||||
"default-theme@mozilla.org" = "5787f490-29b8-436e-a111-640da8590790";
|
"default-theme@mozilla.org" = "5787f490-29b8-436e-a111-640da8590790";
|
||||||
@@ -22,7 +21,7 @@ lib.mkIf (host != "NxACE")
|
|||||||
in {
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = {
|
profiles = {
|
||||||
default = {
|
"${user}" = {
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
settings = with rice.color; {
|
settings = with rice.color; {
|
||||||
"calendar.alarms.showmissed" = false;
|
"calendar.alarms.showmissed" = false;
|
||||||
@@ -47,7 +46,18 @@ lib.mkIf (host != "NxACE")
|
|||||||
"mailnews.headers.showReferences" = true;
|
"mailnews.headers.showReferences" = true;
|
||||||
"mailnews.headers.showSender" = true;
|
"mailnews.headers.showSender" = true;
|
||||||
"mailnews.headers.showUserAgent" = 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 = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = [ "default" ];
|
profiles = [ "nx2" ];
|
||||||
# The id given as argument is an automatically generated account identifier.
|
# The id given as argument is an automatically generated account identifier.
|
||||||
settings = OAuth2Settings;
|
settings = OAuth2Settings;
|
||||||
};
|
};
|
||||||
@@ -96,7 +106,7 @@ lib.mkIf (host != "NxACE")
|
|||||||
};
|
};
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = [ "default" ];
|
profiles = [ "nx2" ];
|
||||||
# The id given as argument is an automatically generated account identifier.
|
# The id given as argument is an automatically generated account identifier.
|
||||||
settings = OAuth2Settings;
|
settings = OAuth2Settings;
|
||||||
};
|
};
|
||||||
@@ -127,7 +137,7 @@ lib.mkIf (host != "NxACE")
|
|||||||
};
|
};
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles = [ "default" ];
|
profiles = [ "nx2" ];
|
||||||
settings = id: {
|
settings = id: {
|
||||||
"mail.server.server_${id}.fcc_folder" = "imap://${un}%40hs-mittweida.de@xc.hs-mittweida.de/Sent";
|
"mail.server.server_${id}.fcc_folder" = "imap://${un}%40hs-mittweida.de@xc.hs-mittweida.de/Sent";
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user