summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/email/gmail.nix3
-rw-r--r--profiles/email/vinkland.nix49
2 files changed, 50 insertions, 2 deletions
diff --git a/profiles/email/gmail.nix b/profiles/email/gmail.nix
index 1a8381e..765f584 100644
--- a/profiles/email/gmail.nix
+++ b/profiles/email/gmail.nix
@@ -75,14 +75,13 @@
};
neomutt = {
enable = true;
- sendMailCommand = "msmtp -a gmail";
+ sendMailCommand = "msmtp -a family";
mailboxName = "=== family ===";
extraConfig = ''
set spoolfile='Inbox'
unvirtual-mailboxes *
'';
};
-
mbsync = {
enable = true;
create = "both"; remove = "both"; expunge = "both";
diff --git a/profiles/email/vinkland.nix b/profiles/email/vinkland.nix
new file mode 100644
index 0000000..6e93d8b
--- /dev/null
+++ b/profiles/email/vinkland.nix
@@ -0,0 +1,49 @@
+{
+ inputs,
+ config,
+ pkgs,
+ ...
+}: {
+ hm = {
+ accounts.email = {
+ accounts = {
+ ivi = {
+ realName = "Mike Vink";
+ userName = "ivi@vinkland.xyz";
+ address = "ivi@vinkland.xyz";
+ passwordCommand = ["${pkgs.pass}/bin/pass" "personal/mailserver"];
+ imap = { host = "vinkland.xyz"; port = 993; tls = { enable = true; }; };
+ smtp = { host = "vinkland.xyz"; port = 587; tls = { enable = true; useStartTls = true; }; };
+ msmtp = {
+ enable = true;
+ };
+ neomutt = {
+ enable = true;
+ sendMailCommand = "msmtp -a ivi";
+ mailboxName = "=== ivi ===";
+ extraConfig = ''
+ set spoolfile='Inbox'
+ unvirtual-mailboxes *
+ '';
+ };
+ mbsync = {
+ enable = true;
+ create = "both"; remove = "both"; expunge = "both";
+ };
+ notmuch = {
+ enable = true;
+ neomutt = {
+ enable = true;
+ virtualMailboxes = [
+ { name = "Drafts"; query = "folder:/ivi/ tag:trash"; }
+ { name = "Inbox"; query = "folder:/ivi/ tag:inbox"; }
+ { name = "Sent"; query = "folder:/ivi/ tag:sent"; }
+ { name = "Junk"; query = "folder:/ivi/ tag:trash"; }
+ ];
+ };
+ };
+ };
+ };
+ };
+ };
+}