diff options
author | lassulus <lassulus@lassul.us> | 2021-01-23 18:54:08 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-01-23 18:54:08 +0100 |
commit | 5b178eb4dfea1db9c578d9d389331fe5ffaaa082 (patch) | |
tree | 8f4ed2a3e908b611cc4d6fa37c5876b021ea5c20 /lass/2configs | |
parent | d618f52cda36f62b3744aa84422b4c9f28bdc61d (diff) |
l mail: export NOTMUCH_CONFIG
Diffstat (limited to 'lass/2configs')
-rw-r--r-- | lass/2configs/mail.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lass/2configs/mail.nix b/lass/2configs/mail.nix index 98affdd83..4c4f888c9 100644 --- a/lass/2configs/mail.nix +++ b/lass/2configs/mail.nix @@ -21,6 +21,26 @@ let account default: prism ''; + notmuch-config = pkgs.writeText "notmuch-config" '' + [database] + path=/home/lass/Maildir + + [user] + name=lassulus + primary_email=lassulus@lassul.us + other_email=lass@mors.r;${concatStringsSep ";" (flatten (attrValues mailboxes))} + + [new] + tags=unread;inbox; + ignore= + + [search] + exclude_tags=deleted;spam; + + [maildir] + synchronize_flags=true + ''; + msmtp = pkgs.writeBashBin "msmtp" '' ${pkgs.coreutils}/bin/tee >(${pkgs.notmuch}/bin/notmuch insert +sent) | \ ${pkgs.msmtp}/bin/msmtp -C ${msmtprc} "$@" @@ -232,6 +252,7 @@ let }; in { + environment.variables.NOTMUCH_CONFIG = toString notmuch-config; environment.systemPackages = [ msmtp mutt |