nixcfg/homes/aly/mail/default.nix
Aly Raffauf 3671401d62
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
theme: overhaul (#78)
* add nord css

* waybar: workaround to avoid hardcoding rgba colors

* alacritty: fix fotn references

* kitty: add custom theme

* waybar: fmt

* aly: remove zed transparency rules

* theme: customize adwaita

* aly: set colors

* desktop: borders 2px -> 4px

* mako: increase border size

* theme: add teritiary color

* hyprland: ignorezero for rofi

* theme: remove teritary color option

* rofi: dynamic theme

* waybar: cleanup

* aly: override helix theme to rose-pine-moon

* return to old defaults

* theme: restore gtk recoloring

* waybar: remove transparency

* aly/theme: mtch rosé pine font color

* theme: add global border-radius options

* theme: add borderRadius

* mauville: override with rose pine dawn colors

* mauville: force override with rose pine dawn colors
2024-08-09 18:16:46 -04:00

148 lines
4.1 KiB
Nix

{
config,
lib,
pkgs,
...
}: let
mkPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}";
in {
accounts.email.accounts = {
"alyraffauf@fastmail.com" = {
address = "alyraffauf@fastmail.com";
aliases = ["aly@raffauflabs.com"];
flavor = "fastmail.com";
himalaya.enable = true;
passwordCommand = mkPassword config.age.secrets.alyraffaufFastmail.path;
primary = true;
realName = "Aly Raffauf";
signature = {
text = ''
Thank you,
Aly Raffauf
https://aly.RaffaufLabs.com
https://alyraffauf.github.com
'';
showSignature = "append";
};
thunderbird = {
enable = true;
profiles = ["default"];
};
userName = "alyraffauf@fastmail.com";
};
"achacega@gmail.com" = {
address = "achacega@gmail.com";
aliases = ["alyraffauf@gmail.com"];
flavor = "gmail.com";
himalaya.enable = true;
passwordCommand = mkPassword config.age.secrets.achacegaGmail.path;
realName = "Aly Raffauf";
signature = {
text = ''
--
Aly Raffauf (née Chace)
'';
showSignature = "append";
};
thunderbird = {
enable = true;
profiles = ["default"];
};
userName = "achacega@gmail.com";
};
"aly.chace@joingsg.com" = {
address = "aly.chace@joingsg.com";
flavor = "gmail.com";
realName = "Aly Raffauf";
signature = {
text = ''
Aly Raffauf (née Chace)
Content Operations Specialist 1
Global Savings Group
'';
showSignature = "append";
};
thunderbird = {
enable = true;
profiles = ["work"];
};
userName = "aly.chace@joingsg.com";
};
};
# home.file = let
# source = builtins.fetchGit {
# url = "https://github.com/rafaelmardojai/thunderbird-gnome-theme.git";
# rev = "628fcccb7788e3e0ad34f67114f563c87ac8c1dc";
# ref = "main";
# };
# in {
# ".thunderbird/default/chrome".source = source;
# ".thunderbird/work/chrome".source = source;
# };
programs = {
himalaya.enable = true;
thunderbird = {
enable = true;
profiles = let
settings = {
"calendar.timezone.useSystemTimezone" = true;
"datareporting.healthreport.uploadEnabled" = false;
"mailnews.default_sort_order" = 2; # descending, 1 for ascending
"mailnews.default_sort_type" = 18; # sort by date
"mailnews.message_display.disable_remote_image" = false;
"network.cookie.cookieBehavior" = 2; # no cookies
"pdfjs.enabledCache.state" = true;
"privacy.donottrackheader.enabled" = true;
"privacy.fingerprintingProtection" = true;
"privacy.firstparty.isolate" = true;
"privacy.purge_trackers.date_in_cookie_database" = "0";
"privacy.resistFingerprinting" = true;
"privacy.trackingprotection.emailtracking.enabled" = true;
"privacy.trackingprotection.enabled" = true;
"privacy.trackingprotection.fingerprinting.enabled" = true;
"privacy.trackingprotection.socialtracking.enabled" = true;
"svg.context-properties.content.enabled" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"toolkit.telemetry.enabled" = false;
};
in {
default = {
inherit settings;
isDefault = true;
};
work.settings = settings;
};
};
};
xdg.desktopEntries.thunderwork = {
categories = ["Application" "Network" "Chat" "Email" "Feed" "GTK" "News"];
comment = "Read and write e-mails or RSS feeds, or manage tasks on calendars.";
exec = "thunderbird -P work --name thunderwork %U";
genericName = "Email Client";
icon = "thunderbird";
mimeType = ["message/rfc822" "x-scheme-handler/mailto" "text/calendar" "text/x-vcard"];
name = "Thunderbird (work)";
settings.StartupWMClass = "thunderwork";
startupNotify = true;
terminal = false;
};
}