aboutsummaryrefslogtreecommitdiff
path: root/modules/email/default.nix
blob: e3566c23da35bbbebf4cbe04385436b87cb80f12 (plain)
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
{ config, lib, pkgs, ... }:
let
  cfg = config.modules.email;
in
{
  options.modules.email = {
    enable = lib.mkEnableOption "email";
  };

  config = lib.mkIf cfg.enable {
    accounts.email.accounts.personal = {
      address = "stefan@s00.xyz";
      primary = true;
      realName = "Stefan Weigl-Bosker";
      userName = "stefan";
      passwordCommand = "${pkgs.pass}/bin/pass show email/stefan@s00.xyz";
      aerc = {
        enable = true;
      };
      imap = {
        host = "imap.s00.xyz";
      };
      smtp = {
        host = "smtp.s00.xyz";
        port = 465;
        tls.enable = true;
      };
      thunderbird.enable = true;
    };
  };
}