summary refs log tree commit diff
path: root/nixos/modules/services/mail
diff options
context:
space:
mode:
authorLéo Gaspard <github@leo.gaspard.ninja>2017-12-31 16:11:15 +0100
committerJoachim F <joachifm@users.noreply.github.com>2017-12-31 15:11:15 +0000
commit70a085b62f5d02cd73235430270759dbce39b7c8 (patch)
tree0d799f04d5f9af6280581b84a331c1887b40ed61 /nixos/modules/services/mail
parent69865f5ce2cd7f7b7e51fa1fd9e44ffa1e7b006a (diff)
downloadnixlib-70a085b62f5d02cd73235430270759dbce39b7c8.tar
nixlib-70a085b62f5d02cd73235430270759dbce39b7c8.tar.gz
nixlib-70a085b62f5d02cd73235430270759dbce39b7c8.tar.bz2
nixlib-70a085b62f5d02cd73235430270759dbce39b7c8.tar.lz
nixlib-70a085b62f5d02cd73235430270759dbce39b7c8.tar.xz
nixlib-70a085b62f5d02cd73235430270759dbce39b7c8.tar.zst
nixlib-70a085b62f5d02cd73235430270759dbce39b7c8.zip
nixos/rspamd: add extraConfig parameter (#33226)
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r--nixos/modules/services/mail/rspamd.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/services/mail/rspamd.nix b/nixos/modules/services/mail/rspamd.nix
index 6d403e448e04..b80aa48f2c86 100644
--- a/nixos/modules/services/mail/rspamd.nix
+++ b/nixos/modules/services/mail/rspamd.nix
@@ -31,6 +31,8 @@ let
       ${mkBindSockets cfg.bindUISocket}
         .include "$CONFDIR/worker-controller.inc"
       }
+
+      ${cfg.extraConfig}
    '';
 
 in
@@ -79,6 +81,15 @@ in
         '';
       };
 
+      extraConfig = mkOption {
+        type = types.lines;
+        default = "";
+        description = ''
+          Extra configuration to add at the end of the rspamd configuration
+          file.
+        '';
+      };
+
       user = mkOption {
         type = types.string;
         default = "rspamd";