diff --git a/home/program/thunderbird/default.nix b/home/program/thunderbird/default.nix index aa8bcaa..98c6578 100644 --- a/home/program/thunderbird/default.nix +++ b/home/program/thunderbird/default.nix @@ -12,22 +12,31 @@ isDefault = true; withExternalGnupg = true; }; - settings = { + settings = let + dayEnd = 19; + dayStart = 10; + fontSize = config.module.style.font.size.application; + reminderMinutes = 10; + snoozeMinutes = 10; + in + { "browser.download.useDownloadDir" = true; - "calendar.alarms.defaultsnoozelength" = 10; + "calendar.alarms.defaultsnoozelength" = snoozeMinutes; + "calendar.alarms.eventalarmlen" = reminderMinutes; "calendar.alarms.onforevents" = 0; "calendar.alarms.onfortodos" = 0; "calendar.alarms.show" = true; "calendar.alarms.soundType" = 1; "calendar.alarms.soundURL" = "file://${}"; + "calendar.alarms.todoalarmlen" = reminderMinutes; "calendar.item.editInTab" = true; - "calendar.notifications.times" = "-PT10M"; + "calendar.notifications.times" = "-PT${toString reminderMinutes}M"; "calendar.view-minimonth.showWeekNumber" = false; - "calendar.view.dayendhour" = 19; - "calendar.view.daystarthour" = 10; - "font.minimum-size.x-western" = 16; - "font.size.monospace.x-western" = 16; - "font.size.variable.x-western" = 16; + "calendar.view.dayendhour" = dayEnd; + "calendar.view.daystarthour" = dayStart; + "font.minimum-size.x-western" = fontSize; + "font.size.monospace.x-western" = fontSize; + "font.size.variable.x-western" = fontSize; "mail.biff.use_system_alert" = true; "mailnews.start_page.enabled" = false; "pdfjs.enabledCache.state" = false;