diff options
author | lassulus <lass@aidsballs.de> | 2016-07-23 19:16:22 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-07-23 19:16:22 +0200 |
commit | 917bdf236f8b38efeafd6c7b697a437ac18f64a6 (patch) | |
tree | dbd6630bc1eecbdaba839d88d0b58866074b0204 /krebs | |
parent | 0bd78c3b0de0fa79322e9031f45dcc62abd094d1 (diff) |
k 3 exim-smarthost: add authenticators option
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/3modules/exim-smarthost.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/krebs/3modules/exim-smarthost.nix b/krebs/3modules/exim-smarthost.nix index aba6ee0b5..8b6627678 100644 --- a/krebs/3modules/exim-smarthost.nix +++ b/krebs/3modules/exim-smarthost.nix @@ -2,6 +2,7 @@ with config.krebs.lib; let + indent = replaceChars ["\n"] ["\n "]; cfg = config.krebs.exim-smarthost; out = { @@ -12,6 +13,11 @@ let api = { enable = mkEnableOption "krebs.exim-smarthost"; + authenticators = mkOption { + type = types.attrsOf types.str; + default = {}; + }; + dkim = mkOption { type = types.listOf (types.submodule ({ config, ... }: { options = { @@ -257,6 +263,10 @@ let begin rewrite begin authenticators + ${concatStringsSep "\n" (mapAttrsToList (name: text: '' + ${name}: + ${indent text} + '') cfg.authenticators)} ''; }; }; |