2025-01-12 08:56:20 +03:00
|
|
|
{
|
|
|
|
__findFile,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2025-01-09 17:42:06 +03:00
|
|
|
{
|
|
|
|
enable = true;
|
2025-01-11 13:55:54 +03:00
|
|
|
package = pkgs.thunderbird-esr;
|
2025-01-09 17:42:06 +03:00
|
|
|
profiles.default = {
|
|
|
|
isDefault = true;
|
|
|
|
withExternalGnupg = true;
|
|
|
|
};
|
2025-01-11 13:53:04 +03:00
|
|
|
settings = {
|
|
|
|
"calendar.alarms.show" = true;
|
|
|
|
"calendar.alarms.soundType" = 1;
|
|
|
|
"calendar.alarms.soundURL" = "file://${<static/Notification.ogg>}";
|
|
|
|
"calendar.item.editInTab" = true;
|
|
|
|
"calendar.view.dayendhour" = 19;
|
|
|
|
"calendar.view.daystarthour" = 10;
|
|
|
|
"mailnews.start_page.enabled" = false;
|
|
|
|
"font.size.variable.x-western" = 16;
|
|
|
|
"font.minimum-size.x-western" = 16;
|
|
|
|
"font.size.monospace.x-western" = 16;
|
|
|
|
"mail.biff.use_system_alert" = true;
|
|
|
|
"pdfjs.enabledCache.state" = false;
|
|
|
|
"browser.download.useDownloadDir" = true;
|
|
|
|
"calendar.view-minimonth.showWeekNumber" = false;
|
|
|
|
"calendar.notifications.times" = "-PT2M,-PT15M,-PT60M";
|
|
|
|
};
|
2025-01-09 17:42:06 +03:00
|
|
|
|
|
|
|
# ISSUE: https://github.com/nix-community/home-manager/issues/5775
|
|
|
|
# ISSUE: https://github.com/nix-community/home-manager/issues/5933
|
|
|
|
# settings =
|
|
|
|
# let
|
|
|
|
# safeName = builtins.replaceStrings [ "." ] [ "-" ];
|
|
|
|
#
|
|
|
|
# calendarAccounts = lib.mapAttrsToList (n: v: { n = v; }) config.home-manager.users.voronind.accounts.calendar.accounts;
|
|
|
|
# calendars = lib.foldAttrs (
|
|
|
|
# item: acc:
|
|
|
|
# let
|
|
|
|
# calendarAccountSafeName = safeName item.name;
|
|
|
|
# in
|
|
|
|
# acc
|
|
|
|
# // {
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.cache.enabled" = true;
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.calendar-main-default" = item.primary;
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.calendar-main-in-composite" = item.primary;
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.name" = item.name;
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.type" = "caldav";
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.uri" = item.remote.url;
|
|
|
|
# "calendar.registry.${calendarAccountSafeName}.username" = item.remote.userName;
|
|
|
|
# }
|
|
|
|
# ) { } calendarAccounts;
|
|
|
|
#
|
|
|
|
# contactsAccount = config.home-manager.users.voronind.accounts.contact.accounts.Home;
|
|
|
|
# contactsAccountSafeName = safeName contactsAccount.name;
|
|
|
|
# addressBookFilename = "abook-${contactsAccountSafeName}.sqlite";
|
|
|
|
# in
|
|
|
|
# calendars
|
|
|
|
# // {
|
|
|
|
# "ldap_2.servers.${contactsAccountSafeName}.carddav.url" = contactsAccount.remote.url;
|
|
|
|
# "ldap_2.servers.${contactsAccountSafeName}.carddav.username" = contactsAccount.remote.userName;
|
|
|
|
# "ldap_2.servers.${contactsAccountSafeName}.description" = contactsAccount.name;
|
|
|
|
# "ldap_2.servers.${contactsAccountSafeName}.dirType" = 102;
|
|
|
|
# "ldap_2.servers.${contactsAccountSafeName}.filename" = addressBookFilename;
|
|
|
|
# "mail.collect_addressbook" = "jscarddav://${addressBookFilename}";
|
|
|
|
# };
|
|
|
|
}
|