1
0
Fork 0
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:
Benedikt Rips 2025-08-04 13:12:55 +02:00 committed by Austin Horstman
parent 5ab62b61fb
commit 6275d1fc57

View file

@ -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";
};
})
]; ];
}; };