aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/email.example.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/email.example.nix')
-rw-r--r--modules/private/email.example.nix18
1 files changed, 2 insertions, 16 deletions
diff --git a/modules/private/email.example.nix b/modules/private/email.example.nix
index ae3b475..0e35e26 100644
--- a/modules/private/email.example.nix
+++ b/modules/private/email.example.nix
@@ -1,16 +1,14 @@
{ config, ... }:
-let
- mailDir = "${config.home.homeDirectory}/.local/mail";
-in
{
- accounts.email.accounts = {
+ config.accounts.email.accounts = {
"example" = {
realName = "Example User";
address = "user@example.com";
userName = "user@example.com";
passwordCommand = "${config.programs.gopass.package}/bin/gopass show -o mail/example";
flavor = "gmail.com";
+ primary = true;
mbsync = {
enable = true;
@@ -28,16 +26,4 @@ in
imapnotify.enable = false;
};
};
-
- # Mbsync config
- programs.mbsync = {
- enable = true;
- directory = mailDir;
- };
-
- # Notmuch config
- programs.notmuch = {
- enable = true;
- database.path = "${mailDir}/.notmuch";
- };
}