blob: 869c4ed755df008ac6db3b8e24b6748958b4bde1 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
config,
lib,
pkgs,
...
}:
let
cfg = config.hm.soft.email;
in
{
options.hm.soft.email = {
thunderbird.enable = lib.mkEnableOption "thunderbird config";
evolution.enable = lib.mkEnableOption "evolution config";
};
config = lib.mkMerge [
{
accounts.email.accounts.disroot = {
primary = true;
address = "adikro@disroot.org";
userName = "adikro@disroot.org";
realName = "adi";
imap = {
host = "disroot.org";
port = 993;
tls.enable = true;
};
smtp = {
host = "disroot.org";
port = 465;
tls.enable = true;
};
thunderbird.enable = cfg.thunderbird.enable;
};
}
(lib.mkIf cfg.thunderbird.enable {
programs.thunderbird = {
enable = true;
profiles.main = {
isDefault = true;
settings = {
"network.proxy.type" = 0;
};
};
};
})
(lib.mkIf cfg.evolution.enable {
home.packages = [ pkgs.evolution ];
})
];
}
|