nix/home-manager/config/accounts/email.nix

82 lines
No EOL
2.2 KiB
Nix
Executable file

{ lib, config, ... }:
{
accounts.email.accounts = lib.mkIf config.meta.home-manager.email.enable {
PurelyMail = rec {
realName = "Tyler Beckman";
address = "ty@myriation.xyz";
userName = address;
primary = true;
folders = {
inbox = "INBOX";
drafts = "Drafts";
sent = "Sent";
trash = "Trash";
};
gpg = {
encryptByDefault = false;
signByDefault = false;
key = "A6299C20250223DCDEBA5E2C933B9437A97A56B8";
};
imap = {
host = "imap.purelymail.com";
port = 993;
tls = {
enable = true;
useStartTls = false;
};
};
smtp = {
host = "smtp.purelymail.com";
port = 465;
tls = {
enable = true;
useStartTls = false;
};
};
thunderbird.enable = config.meta.home-manager.email.thunderbird.enable;
};
Gmail = rec {
realName = "Tyler Beckman";
address = "tbeckman530@gmail.com";
userName = address;
flavor = "gmail.com";
folders = {
inbox = "Inbox";
drafts = "Drafts";
sent = "Sent";
trash = "Trash";
};
gpg = {
encryptByDefault = false;
signByDefault = false;
key = "A6299C20250223DCDEBA5E2C933B9437A97A56B8";
};
smtp.tls.useStartTls = false;
thunderbird.enable = config.meta.home-manager.email.thunderbird.enable;
};
School = rec {
realName = "Tyler Beckman";
address = "tyler_beckman@mines.edu";
userName = address;
flavor = "outlook.office365.com";
folders = {
inbox = "Inbox";
drafts = "Drafts";
sent = "Sent Items";
trash = "Trash";
};
};
};
}