k 3 exim-smarthost: add authenticators option
This commit is contained in:
parent
0bd78c3b0d
commit
917bdf236f
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
with config.krebs.lib;
|
with config.krebs.lib;
|
||||||
let
|
let
|
||||||
|
indent = replaceChars ["\n"] ["\n "];
|
||||||
cfg = config.krebs.exim-smarthost;
|
cfg = config.krebs.exim-smarthost;
|
||||||
|
|
||||||
out = {
|
out = {
|
||||||
|
@ -12,6 +13,11 @@ let
|
||||||
api = {
|
api = {
|
||||||
enable = mkEnableOption "krebs.exim-smarthost";
|
enable = mkEnableOption "krebs.exim-smarthost";
|
||||||
|
|
||||||
|
authenticators = mkOption {
|
||||||
|
type = types.attrsOf types.str;
|
||||||
|
default = {};
|
||||||
|
};
|
||||||
|
|
||||||
dkim = mkOption {
|
dkim = mkOption {
|
||||||
type = types.listOf (types.submodule ({ config, ... }: {
|
type = types.listOf (types.submodule ({ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
|
@ -257,6 +263,10 @@ let
|
||||||
|
|
||||||
begin rewrite
|
begin rewrite
|
||||||
begin authenticators
|
begin authenticators
|
||||||
|
${concatStringsSep "\n" (mapAttrsToList (name: text: ''
|
||||||
|
${name}:
|
||||||
|
${indent text}
|
||||||
|
'') cfg.authenticators)}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue