summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-03-09 09:09:37 +0100
committerlassulus <git@lassul.us>2023-03-09 09:09:37 +0100
commit54cc4738ec8d5d03fa7965045b1377b8097910ab (patch)
tree6e4c8b7b67fa2684c07b369df8a097fb0c95d1db /krebs/3modules
parent2168f3961298b661fd010add7972a86af77f81de (diff)
exim: add extraRouters option
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/exim-smarthost.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/3modules/exim-smarthost.nix b/krebs/3modules/exim-smarthost.nix
index b3cf212e4..7a5a55d49 100644
--- a/krebs/3modules/exim-smarthost.nix
+++ b/krebs/3modules/exim-smarthost.nix
@@ -39,6 +39,11 @@ let
default = [];
};
+ extraRouters = mkOption {
+ type = types.nullOr types.str;
+ default = null;
+ };
+
internet-aliases = mkOption {
type = types.listOf (types.submodule ({
options = {
@@ -254,6 +259,8 @@ let
transport = home_maildir
cannot_route_message = Unknown user
+ ${lib.optionalString (cfg.extraRouters != null) cfg.extraRouters}
+
begin transports
retiolum_smtp: