-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Managing Thunderbird calendars with accounts.calendars
?
#5775
Labels
Comments
I was able to configure the calendar specified as "myAccount" like this: {
home-manager.users.default.programs.thunderbird.settings =
let
calendarAccount = config.home-manager.users.default.accounts.calendar.accounts.myAccount;
safeName = builtins.replaceStrings [ "." ] [ "-" ];
calendarAccountSafeName = safeName calendarAccount.name;
in
{
"calendar.registry.${calendarAccountSafeName}.cache.enabled" = true;
"calendar.registry.${calendarAccountSafeName}.calendar-main-default" = calendarAccount.primary;
"calendar.registry.${calendarAccountSafeName}.calendar-main-in-composite" = calendarAccount.primary;
"calendar.registry.${calendarAccountSafeName}.name" = calendarAccount.name;
"calendar.registry.${calendarAccountSafeName}.type" = "caldav";
"calendar.registry.${calendarAccountSafeName}.uri" = calendarAccount.remote.url;
"calendar.registry.${calendarAccountSafeName}.username" = calendarAccount.remote.userName;
};
} |
Looks like there's already a PR for this functionality. |
5 tasks
With HTTP type calendar support:
|
For multiple accounts, in case someone else needs this too: {
programs.thunderbird.settings =
let
cal = map (calendar: let
safeName = builtins.replaceStrings [ "." ] [ "-" ] calendar.name;
in {
"calendar.registry.${safeName}.cache.enabled" = true;
"calendar.registry.${safeName}.calendar-main-default" = calendar.primary;
"calendar.registry.${safeName}.calendar-main-in-composite" = calendar.primary;
"calendar.registry.${safeName}.name" = calendar.name;
"calendar.registry.${safeName}.type" = "caldav";
"calendar.registry.${safeName}.uri" = calendar.remote.url;
"calendar.registry.${safeName}.username" = calendar.remote.userName;
}) (builtins.attrValues config.accounts.calendar.accounts);
in builtins.foldl' lib.recursiveUpdate { } cal;
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
It would be helpful to have an option to configure Thunderbird calendar accounts using
accounts.calendars.accounts.<name>.*
options.Seems like currently, only vdirsyncer and khal are suppported?
The text was updated successfully, but these errors were encountered: