mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 10:11:54 -05:00
54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
osConfig,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
genPassword = secret: "${lib.getExe' pkgs.coreutils "cat"} ${secret}";
|
|
in {
|
|
accounts.email.accounts = {
|
|
fastmail = {
|
|
address = "alyraffauf@fastmail.com";
|
|
aliases = ["aly@raffauflabs.com"];
|
|
flavor = "fastmail.com";
|
|
passwordCommand = genPassword osConfig.age.secrets.alyraffaufFastmail.path;
|
|
primary = true;
|
|
realName = "Aly Raffauf";
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = ["default"];
|
|
};
|
|
userName = "alyraffauf@fastmail.com";
|
|
himalaya.enable = true;
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
himalaya.enable = true;
|
|
|
|
thunderbird = {
|
|
enable = true;
|
|
profiles = {
|
|
default.isDefault = true;
|
|
work = {};
|
|
};
|
|
};
|
|
};
|
|
|
|
xdg.desktopEntries.thunderwork = {
|
|
categories = ["Application" "Network" "Chat" "Email" "Feed" "GTK" "News"];
|
|
exec = "thunderbird -P work --name thunderwork %U";
|
|
comment = "Read and write e-mails or RSS feeds, or manage tasks on calendars.";
|
|
genericName = "Email Client";
|
|
icon = "thunderbird";
|
|
mimeType = ["message/rfc822" "x-scheme-handler/mailto" "text/calendar" "text/x-vcard"];
|
|
name = "Thunderbird (work)";
|
|
startupNotify = true;
|
|
terminal = false;
|
|
settings = {
|
|
StartupWMClass = "thunderwork";
|
|
};
|
|
};
|
|
}
|