-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththunderbird.nix
52 lines (50 loc) · 1.23 KB
/
thunderbird.nix
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
config,
pkgs,
...
}:
{
home.packages = [ pkgs.thunderbird ];
programs.thunderbird = {
enable = true;
profiles.${config.home.username} = {
isDefault = true;
};
};
# TODO: create an option to specify the useraccounts
accounts.email = {
accounts.Posteo = {
realName = "Térence Chateigné";
address = "terence.chateigne@posteo.net";
userName = "terence.chateigne@posteo.net";
primary = true;
imap = {
host = "posteo.de";
port = 993;
};
thunderbird = {
enable = true;
profiles = [ "${config.home.username}" ];
};
};
accounts.Gmail = {
realName = "Térence Chateigné";
address = "terence.chateigne@gmail.com";
userName = "terence.chateigne@gmail.com";
flavor = "gmail.com";
imap = {
host = "imap.gmail.com";
port = 993;
};
thunderbird = {
enable = true;
profiles = [ "${config.home.username}" ];
settings = id: {
# OAuth method ID, check https://github.com/nix-community/home-manager/issues/4988
"mail.server.server_${id}.authMethod" = 10;
"mail.smtpserver.smtp_${id}.authMethod" = 10;
};
};
};
};
}