aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/email.example.nix
blob: 16d8402fcd52d5ce4055b845acc6f65f7240ff26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Email example - Template for configuring neomutt email accounts
{ ... }:
{
  config.communication.neomutt.accounts = {
    "example@gmail.com" = {
      realName = "Example User";
      address = "user@gmail.com";
      passwordGopassSecret = "mail/user@gmail.com";
      flavor = "gmail.com";
      primary = true;
      neomutt.extraConfig = ''
        set pgp_default_key = YOUR_GPG_KEY_FINGERPRINT
      '';
      gpg = {
        key = "YOUR_GPG_KEY_ID";
        signByDefault = true;
        encryptByDefault = false; # set true only if you also want auto-encrypt
      };
    };
  };
}