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:
Robert Helgesson 2018-08-16 23:09:20 +02:00
parent 4b32f16747
commit 34133ca7f3
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -25,8 +25,9 @@ let
};
certificatesFile = mkOption {
type = types.nullOr types.path;
default = null;
type = types.path;
default = config.accounts.email.certificatesFile;
defaultText = "config.accounts.email.certificatesFile";
description = ''
Path to file containing certificate authorities that should
be used to validate the connection authenticity. If
@ -278,6 +279,16 @@ in
{
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 {
type = types.str;
default = "${config.home.homeDirectory}/Maildir";