aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/email.example.nix
blob: e6b4c2f25b136d5f8920eb95a12a8170463d7b48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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
        };
      };
    };
  };
}