mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 15:41:02 +01:00
accounts.email: add 'davmail' flavor
This commit is contained in:
parent
5ab62b61fb
commit
6275d1fc57
1 changed files with 20 additions and 5 deletions
|
|
@ -355,13 +355,14 @@ let
|
||||||
|
|
||||||
flavor = mkOption {
|
flavor = mkOption {
|
||||||
type = types.enum [
|
type = types.enum [
|
||||||
"plain"
|
"davmail"
|
||||||
"gmail.com"
|
|
||||||
"runbox.com"
|
|
||||||
"fastmail.com"
|
"fastmail.com"
|
||||||
"yandex.com"
|
"gmail.com"
|
||||||
"outlook.office365.com"
|
|
||||||
"migadu.com"
|
"migadu.com"
|
||||||
|
"outlook.office365.com"
|
||||||
|
"plain"
|
||||||
|
"runbox.com"
|
||||||
|
"yandex.com"
|
||||||
];
|
];
|
||||||
default = "plain";
|
default = "plain";
|
||||||
description = ''
|
description = ''
|
||||||
|
|
@ -618,6 +619,20 @@ let
|
||||||
port = if config.smtp.tls.useStartTls then 587 else 465;
|
port = if config.smtp.tls.useStartTls then 587 else 465;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf (config.flavor == "davmail") {
|
||||||
|
imap = {
|
||||||
|
host = "localhost";
|
||||||
|
port = 1143;
|
||||||
|
authentication = "login";
|
||||||
|
};
|
||||||
|
smtp = {
|
||||||
|
host = "localhost";
|
||||||
|
port = 1025;
|
||||||
|
tls.enable = false;
|
||||||
|
authentication = "plain";
|
||||||
|
};
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue