summaryrefslogtreecommitdiff
path: root/home/mail/default.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-01-18 21:22:48 -0600
committerAlejandro Soto <alejandro@34project.org>2023-01-18 21:22:48 -0600
commit06ac78d36a437429524a93e02564746326859789 (patch)
tree81ccd62127bc76d950e66cb4657e0a43fd4d8c78 /home/mail/default.nix
parent2f617bd184ba778d21ca910776416024fc32bc7b (diff)
home/mail: add sieve script
Diffstat (limited to 'home/mail/default.nix')
-rw-r--r--home/mail/default.nix51
1 files changed, 51 insertions, 0 deletions
diff --git a/home/mail/default.nix b/home/mail/default.nix
new file mode 100644
index 0000000..38bc41e
--- /dev/null
+++ b/home/mail/default.nix
@@ -0,0 +1,51 @@
+{ config, lib, ... }:
+with lib; {
+ config = mkIf (!config.home.isolation.active) {
+ accounts.email = {
+ maildirBasePath = "mail";
+
+ accounts.local = {
+ address = "alejandro@34project.org";
+ userName = "alejandro@34project.org";
+ realName = "Alejandro Soto";
+
+ primary = true;
+
+ # ${maildirBasePath}/${maildir.path}
+ maildir.path = "";
+ folders.inbox = "";
+
+ msmtp.enable = true;
+ neomutt.enable = true;
+
+ smtp = {
+ host = "smtp.34project.org";
+
+ tls = {
+ enable = true;
+ useStartTls = true;
+ };
+ };
+ };
+ };
+
+ programs = {
+ msmtp.enable = true;
+
+ neomutt = {
+ enable = true;
+ vimKeys = true;
+
+ settings = {
+ record = "+.Sent";
+ postponed = "+.Drafts";
+
+ use_threads = "flat";
+ index_format = "'%4C %Z %<[y?%<[m?%<[d?%[%H:%M ]&%[%a %d]>&%[%b %d]>&%[%m/%y ]> %-15.15L (%?l?%4l&%4c?) %s'";
+ };
+ };
+ };
+
+ home.file.".dovecot.sieve".source = ./dovecot.sieve;
+ };
+}