feat(thunderbird): calendars
This commit is contained in:
parent
ee059bf5b2
commit
b98d15a34c
1 changed files with 129 additions and 76 deletions
|
|
@ -26,7 +26,8 @@ let
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
||||||
accounts.email.accounts = {
|
accounts = {
|
||||||
|
email.accounts = {
|
||||||
Telenet = {
|
Telenet = {
|
||||||
address = "tibo.depeuter@telenet.be";
|
address = "tibo.depeuter@telenet.be";
|
||||||
userName = "tibo.depeuter@telenet.be";
|
userName = "tibo.depeuter@telenet.be";
|
||||||
|
|
@ -96,7 +97,6 @@ in {
|
||||||
"mail.identity.id_${id}.htmlSigText" = signatures.default;
|
"mail.identity.id_${id}.htmlSigText" = signatures.default;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
MrFortem = {
|
MrFortem = {
|
||||||
flavor = "gmail.com";
|
flavor = "gmail.com";
|
||||||
|
|
@ -119,12 +119,65 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
calendar.accounts = let
|
||||||
|
makeNextcloudCalendar = calendarName: color: {
|
||||||
|
remote = {
|
||||||
|
type = "caldav";
|
||||||
|
url = "https://cloud.depeuter.dev/remote.php/dav/calendars/tdpeuter/${calendarName}";
|
||||||
|
userName = "tdpeuter";
|
||||||
|
};
|
||||||
|
thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
inherit color;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
Personal = makeNextcloudCalendar "personal" "#2ec27e";
|
||||||
|
UGent = {
|
||||||
|
remote = {
|
||||||
|
type = "caldav";
|
||||||
|
url = "https://cloud.depeuter.dev/remote.php/dav/calendars/tdpeuter/ugent/";
|
||||||
|
userName = "tdpeuter";
|
||||||
|
};
|
||||||
|
thunderbird = {
|
||||||
|
enable = true;
|
||||||
|
color = "#1e64c8";
|
||||||
|
settings = id: {
|
||||||
|
# Link to UGent mail
|
||||||
|
"calendar.registry.${id}.imip.identity.key" = "id_${builtins.hashString "sha256" "ugent"}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
Tasks = makeNextcloudCalendar "tasks-2" "#813d9c";
|
||||||
|
Work = makeNextcloudCalendar "vts" "#ff0000";
|
||||||
|
Planning = makeNextcloudCalendar "planning" "#102457";
|
||||||
|
Joetz = makeNextcloudCalendar "joetz" "#ea1c0f";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
thunderbird = {
|
thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.tdpeuter = {
|
profiles.tdpeuter = {
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
accountsOrder = [
|
||||||
|
"Telenet"
|
||||||
|
"UGent"
|
||||||
|
"Gmail"
|
||||||
|
"MrFortem"
|
||||||
|
];
|
||||||
|
calendarAccountsOrder = [
|
||||||
|
"Personal"
|
||||||
|
"UGent"
|
||||||
|
"Tasks"
|
||||||
|
"Work"
|
||||||
|
"Planning"
|
||||||
|
"Joetz"
|
||||||
|
];
|
||||||
settings = {
|
settings = {
|
||||||
|
"mail.shell.checkDefaultClient" = false;
|
||||||
|
"mail.threadpane.listview" = 0;
|
||||||
|
|
||||||
# View
|
# View
|
||||||
"mailnews.default_sort_order" = 2; # Sort descending
|
"mailnews.default_sort_order" = 2; # Sort descending
|
||||||
"mailnews.mark_message_read.delay" = true;
|
"mailnews.mark_message_read.delay" = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue