diff options
Diffstat (limited to '')
-rw-r--r-- | home-manager/config/mail/default.nix | 90 |
1 files changed, 46 insertions, 44 deletions
diff --git a/home-manager/config/mail/default.nix b/home-manager/config/mail/default.nix index 31377b16..e44d2c33 100644 --- a/home-manager/config/mail/default.nix +++ b/home-manager/config/mail/default.nix @@ -1,49 +1,51 @@ -{...}: { - accounts.email.accounts = { - soispha = { - address = "soispha@vhack.eu"; - #name = "soispha"; - userName = "soispha"; - realName = "Soispha"; - primary = true; - passwordCommand = "secret-tool lookup account soispha@vhack.eu"; - aliases = [ - "admin@vhack.eu" - ]; - folders = { - }; - gpg = { - encryptByDefault = true; - key = ""; # TODO add - signByDefault = true; - }; - signature = { - # TODO - }; - neomutt = { - enable = true; - }; - himalaya = { - enable = true; - backend = "imap"; - sender = "smtp"; - settings = { +{config, ...}: { + accounts.email = { + maildirBasePath = "${config.xdg.dataHome}/maildir"; + accounts = { + soispha = { + address = "soispha@vhack.eu"; + userName = "soispha"; + realName = "Soispha"; + primary = true; + passwordCommand = "secret-tool lookup account soispha@vhack.eu"; + aliases = [ + "admin@vhack.eu" + ]; + folders = { + }; + gpg = { + encryptByDefault = true; + key = "9606FC749FCE16360723D4ADA5E94010C3A642AD"; + signByDefault = true; + }; + signature = { # TODO }; - }; - smtp = { - host = "smtp.vhack.eu"; - port = 465; - }; - imap = { - host = "imap.vhack.eu"; - port = 993; - }; - jmap = { - # TODO - }; - maildir = { - path = "soispha"; + neomutt = { + enable = true; + }; + himalaya = { + enable = true; + backend = "imap"; + sender = "smtp"; + settings = { + # TODO + }; + }; + smtp = { + host = "smtp.vhack.eu"; + port = 465; + }; + imap = { + host = "imap.vhack.eu"; + port = 993; + }; + jmap = { + # TODO + }; + maildir = { + path = "soispha"; + }; }; }; }; |