email: work i think idk

This commit is contained in:
The Hedgehog 2023-01-30 16:48:33 -05:00
parent f3c0a2b229
commit b68aa4e7d7
Signed by: thehedgehog
GPG key ID: 8CDF3F7CAA53A0F5
4 changed files with 48 additions and 10 deletions

View file

@ -41,6 +41,7 @@
./home/programs/chromium.nix
./home/programs/direnv.nix
./home/programs/emacs
./home/programs/email.nix
./home/programs/espanso
./home/programs/firefox.nix
./home/programs/fish
@ -79,7 +80,7 @@
# ./home/services/taskwarrior-sync.nix
# Email config
# ./home/email.nix
./home/email.nix
# Packages
./home/packages.nix

View file

@ -1,21 +1,52 @@
{
accounts.email.maildirBasePath = ".mail";
accounts.email.accounts = {
thehedgehog = {
realName = "The Hedgehog";
address = "hedgehog@mrhedgehog.xyz";
passwordCommand = "bw get password 'Migadu Anon Mailbox'";
userName = "hedgehog@mrhedgehog.xyz";
pyrox = {
realName = "Pyrox";
userName = "pyrox@pyrox.dev";
address = "pyrox@pyrox.dev";
primary = true;
himalaya.enable = true;
passwordCommand = "rbw get 'Migadu Anon Mailbox'";
himalaya = {
enable = false;
backend = "imap";
sender = "smtp";
settings = {
imap-passwd-cmd = "rbw get 'Migadu Anon Mailbox'";
smtp-passwd-cmd = "rbw get 'Migadu Anon Mailbox'";
};
};
mbsync = {
enable = true;
create = "both";
};
msmtp.enable = true;
mu.enable = true;
offlineimap.enable = true;
imap = {
host = "imap.migadu.com";
tls.enable = true;
host = "mail.pyrox.dev";
port = 993;
tls.enable = true;
tls.useStartTls = false;
};
smtp = {
host = "smtp.migadu.com";
host = "mail.pyrox.dev";
port = 465;
tls.enable = true;
tls.useStartTls = false;
};
thunderbird.enable = false;
signature = {
delimiter = ''
--
'';
showSignature = "append";
text = ''
Pyrox,
She/They Agender
Sysadmin, self-hoster, techie
"Why do they call it oven if you of in the cold food of out hot eat the food?"
'';
};
};
};

5
home/programs/email.nix Normal file
View file

@ -0,0 +1,5 @@
{ config, pkgs, lib, ... }: {
programs.msmtp.enable = true;
programs.mbsync.enable = true;
programs.mu.enable = true;
}

View file

@ -2,6 +2,7 @@
"pyrox@pyrox.dev" = {
hashedPassword = "$2b$05$8k04quBe6adg8d1yznEp3uNYM54MOVJTwDGIWvzocQFoWbmcCvebC";
aliases = [
"pyrox"
"postmaster@pyrox.dev"
"abuse@pyrox.dev"
"aaron@pyrox.dev"