mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
accounts.email: add authentication mechanism
This commit is contained in:
committed by
Austin Horstman
parent
475d35797d
commit
5ab62b61fb
@@ -114,6 +114,28 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
authenticationOption = mkOption {
|
||||
type = types.nullOr (
|
||||
types.either types.str (
|
||||
types.enum [
|
||||
"anonymous"
|
||||
"apop"
|
||||
"clear"
|
||||
"cram_md5"
|
||||
"digest_md5"
|
||||
"gssapi"
|
||||
"login"
|
||||
"ntlm"
|
||||
"plain"
|
||||
"xoauth2"
|
||||
]
|
||||
)
|
||||
);
|
||||
default = null;
|
||||
example = "plain";
|
||||
description = "The authentication mechanism.";
|
||||
};
|
||||
|
||||
imapModule = types.submodule {
|
||||
options = {
|
||||
host = mkOption {
|
||||
@@ -134,6 +156,8 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
authentication = authenticationOption;
|
||||
|
||||
tls = mkOption {
|
||||
type = tlsModule;
|
||||
default = { };
|
||||
@@ -194,6 +218,8 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
authentication = authenticationOption;
|
||||
|
||||
tls = mkOption {
|
||||
type = tlsModule;
|
||||
default = { };
|
||||
|
||||
Reference in New Issue
Block a user