accounts.email: add global certificatesFile option
This defaults to `/etc/ssl/certs/ca-certificates.crt` and will be picked up as default by the account specific option.
This commit is contained in:
parent
4b32f16747
commit
34133ca7f3
|
@ -25,8 +25,9 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
certificatesFile = mkOption {
|
certificatesFile = mkOption {
|
||||||
type = types.nullOr types.path;
|
type = types.path;
|
||||||
default = null;
|
default = config.accounts.email.certificatesFile;
|
||||||
|
defaultText = "config.accounts.email.certificatesFile";
|
||||||
description = ''
|
description = ''
|
||||||
Path to file containing certificate authorities that should
|
Path to file containing certificate authorities that should
|
||||||
be used to validate the connection authenticity. If
|
be used to validate the connection authenticity. If
|
||||||
|
@ -278,6 +279,16 @@ in
|
||||||
|
|
||||||
{
|
{
|
||||||
options.accounts.email = {
|
options.accounts.email = {
|
||||||
|
certificatesFile = mkOption {
|
||||||
|
type = types.path;
|
||||||
|
default = "/etc/ssl/certs/ca-certificates.crt";
|
||||||
|
description = ''
|
||||||
|
Path to default file containing certificate authorities that
|
||||||
|
should be used to validate the connection authenticity. This
|
||||||
|
path may be overridden on a per-account basis.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
maildirBasePath = mkOption {
|
maildirBasePath = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "${config.home.homeDirectory}/Maildir";
|
default = "${config.home.homeDirectory}/Maildir";
|
||||||
|
|
Loading…
Reference in a new issue