-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
email: switch to archival setup only
Using the Fastmail web UI for actually reading and composing email now, but will keep mbsync and neofetch for archiving and viewing archived emails.
- Loading branch information
Showing
4 changed files
with
20 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,113 +3,30 @@ | |
config, | ||
pkgs, | ||
... | ||
}: let | ||
secrets = import ./secrets.nix; | ||
in { | ||
}: { | ||
imports = [ | ||
./mailcap.nix | ||
./neomutt.nix | ||
]; | ||
|
||
programs.mbsync.enable = true; | ||
programs.msmtp.enable = true; | ||
|
||
accounts.email.maildirBasePath = ".mail"; | ||
|
||
accounts.email.accounts = { | ||
fastmail = let | ||
a = secrets.accounts.fastmail; | ||
in { | ||
primary = true; | ||
accounts.email.accounts.fastmail = { | ||
primary = true; | ||
|
||
address = a.address; | ||
realName = a.realName; | ||
userName = a.address; | ||
passwordCommand = "pass Passwords/Personal/fastmail/api_password"; | ||
address = "[email protected]"; | ||
realName = "Dan Nixon"; | ||
userName = "[email protected]"; | ||
passwordCommand = "pass Passwords/Personal/fastmail/api_password"; | ||
|
||
imap.host = "imap.fastmail.com"; | ||
mbsync = { | ||
enable = true; | ||
create = "both"; | ||
imap.host = "imap.fastmail.com"; | ||
mbsync = { | ||
enable = true; | ||
create = "both"; | ||
extraConfig.channel = { | ||
CopyArrivalDate = "yes"; | ||
}; | ||
|
||
smtp = { | ||
host = "smtp.fastmail.com"; | ||
port = 587; | ||
tls.useStartTls = true; | ||
}; | ||
msmtp.enable = true; | ||
}; | ||
|
||
gmail = let | ||
a = secrets.accounts.gmail; | ||
in { | ||
address = a.address; | ||
realName = a.realName; | ||
userName = a.address; | ||
passwordCommand = "pass Passwords/Personal/google/email_password"; | ||
|
||
imap.host = "imap.gmail.com"; | ||
mbsync = { | ||
enable = true; | ||
create = "both"; | ||
patterns = [ | ||
"*" | ||
"![Google Mail]/All Mail" | ||
"![Google Mail]/All mail" | ||
]; | ||
}; | ||
|
||
smtp = { | ||
host = "smtp.gmail.com"; | ||
port = 587; | ||
tls.useStartTls = true; | ||
}; | ||
msmtp.enable = true; | ||
}; | ||
|
||
outlook-1 = let | ||
a = secrets.accounts.outlook-1; | ||
in { | ||
address = a.address; | ||
realName = a.realName; | ||
userName = a.address; | ||
passwordCommand = "pass Passwords/Personal/microsoft_1/Password"; | ||
|
||
imap.host = "outlook.office365.com"; | ||
mbsync = { | ||
enable = true; | ||
create = "both"; | ||
}; | ||
|
||
smtp = { | ||
host = "smtp.office365.com"; | ||
port = 587; | ||
tls.useStartTls = true; | ||
}; | ||
msmtp.enable = true; | ||
}; | ||
|
||
outlook-2 = let | ||
a = secrets.accounts.outlook-2; | ||
in { | ||
address = a.address; | ||
realName = a.realName; | ||
userName = a.address; | ||
passwordCommand = "pass Passwords/Personal/microsoft_2/Password"; | ||
|
||
imap.host = "outlook.office365.com"; | ||
mbsync = { | ||
enable = true; | ||
create = "both"; | ||
}; | ||
|
||
smtp = { | ||
host = "smtp.office365.com"; | ||
port = 587; | ||
tls.useStartTls = true; | ||
}; | ||
msmtp.enable = true; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.