about summary refs log blame commit diff stats
path: root/hm/soispha/conf/mail/default.nix
blob: 475bcacf0a7c15810277d64fbc6b83932d4e6323 (plain) (tree)
1
2
3
4
5
6
7
8

         
      
     
      
                                                                         
                                                                        
















                                                                                          
             











                       
               
        







                                
             







                                                       
    
{
  config,
  pkgs,
  lib,
  ...
}: let
  non_public_accounts = import ./non_public_accounts.nix {inherit pkgs;};
  accounts = lib.recursiveUpdate {inherit soispha;} non_public_accounts;

  soispha = {
    address = "soispha@vhack.eu";
    userName = "soispha@vhack.eu";
    realName = "Soispha";
    primary = true;
    passwordCommand = "${pkgs.libsecret}/bin/secret-tool lookup account soispha@vhack.eu";
    aliases = [
      "admin@vhack.eu"
    ];
    folders = {
    };
    gpg = {
      encryptByDefault = true;
      key = "9606FC749FCE16360723D4ADA5E94010C3A642AD";
      signByDefault = true;
    };
    signature = {
      # TODO:
    };
    neomutt = {
      enable = true;
    };
    mbsync = {
      enable = true;
      create = "both";
    };
    himalaya = {
      enable = true;
      backend = "imap";
      sender = "smtp";
      settings = {
        # TODO:
      };
    };
    smtp = {
      host = "server1.vhack.eu";
      port = 465;
    };
    imap = {
      host = "server1.vhack.eu";
      port = 993;
    };
    jmap = {
      # TODO:
    };
    maildir = {
      path = "soispha";
    };
  };
in {
  accounts.email = {
    maildirBasePath = "${config.xdg.dataHome}/maildir";
    inherit accounts;
  };
}