mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-03 07:31:03 +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 {
|
||||
type = types.enum [
|
||||
"plain"
|
||||
"gmail.com"
|
||||
"runbox.com"
|
||||
"davmail"
|
||||
"fastmail.com"
|
||||
"yandex.com"
|
||||
"outlook.office365.com"
|
||||
"gmail.com"
|
||||
"migadu.com"
|
||||
"outlook.office365.com"
|
||||
"plain"
|
||||
"runbox.com"
|
||||
"yandex.com"
|
||||
];
|
||||
default = "plain";
|
||||
description = ''
|
||||
|
|
@ -618,6 +619,20 @@ let
|
|||
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