From c4c5ef1fa84a8acb07aa40aeae6901fd89d8b708 Mon Sep 17 00:00:00 2001 From: toastal Date: Sun, 16 Oct 2022 15:21:24 +0700 Subject: [PATCH] email: add signature delimiter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While this is created to match `himalaya`’s configuration API, this could easly be reused for other programs that consume the email module by concatination the strings. (cherry picked from commit 05d71f517b6406471e2ebca49980db83e5c7d565) --- modules/accounts/email.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/modules/accounts/email.nix b/modules/accounts/email.nix index a5ded6a0..2d158a21 100644 --- a/modules/accounts/email.nix +++ b/modules/accounts/email.nix @@ -44,6 +44,19 @@ let ''; }; + delimiter = mkOption { + type = types.str; + default = '' + -- + ''; + example = literalExpression '' + ~*~*~*~*~*~*~*~*~*~*~*~ + ''; + description = '' + The delimiter used between the document and the signature. + ''; + }; + command = mkOption { type = with types; nullOr path; default = null;