aboutsummaryrefslogtreecommitdiff
path: root/modules/accounts
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2018-08-16 23:09:20 +0200
committerRobert Helgesson <robert@rycee.net>2018-08-16 23:29:10 +0200
commit34133ca7f34d4ef80d83052ca6580e89885837eb (patch)
treecf0f7eb636b5d1f1e629d7233d5e2085adf014f6 /modules/accounts
parent4b32f16747f5b21d4a512112d44cf60aa6ef2601 (diff)
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.
Diffstat (limited to 'modules/accounts')
-rw-r--r--modules/accounts/email.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/modules/accounts/email.nix b/modules/accounts/email.nix
index 031b8baa28f..2f45fe7e7d7 100644
--- a/modules/accounts/email.nix
+++ b/modules/accounts/email.nix
@@ -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";