nix/home/program/thunderbird/default.nix

47 lines
2 KiB
Nix
Raw Normal View History

2025-01-09 17:42:06 +03:00
{ config, lib, ... }:
{
enable = true;
profiles.default = {
isDefault = true;
withExternalGnupg = true;
};
# 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}";
# };
}