all repos — dotfiles @ 1e364fcfa42dbc4f3d584807ac068c090214a2db

my *nix dotfiles

nix/mail.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
{ config
, lib
, pkgs
, ...
}:

{
  accounts.email.maildirBasePath = "mail";
  accounts.email.accounts."x@icyphox.sh" = {
    address = "x@icyphox.sh";
    imap = {
      host = "imap.migadu.com";
      port = 993;
    };
    maildir = {
      path = "personal";
    };
    mbsync = {
      enable = true;
      create = "maildir";
      expunge = "maildir";
    };
    primary = true;
    passwordCommand = "${pkgs.gnupg}/bin/gpg -q --for-your-eyes-only --no-tty -d /home/icy/.pw/default.gpg";
    realName = "Anirudh Oppiliappan";
    userName = "x@icyphox.sh";
    signature = {
      text = ''

        -- 
        Anirudh Oppiliappan
        https://icyphox.sh
      '';
    };
  };
}