summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-01-01 15:09:55 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-01-01 15:09:55 +0100
commit1869e7e5b0580e9398529dbebde7e983193c445e (patch)
tree151a8b06d499551660d6621a05dc1cf25d89631a /nixos/modules
parente92a133238aea65770556631bdff307855ecdc77 (diff)
parent4d917639fb3c2959f058e533d5ebb2001e5b05fa (diff)
downloadnixlib-1869e7e5b0580e9398529dbebde7e983193c445e.tar
nixlib-1869e7e5b0580e9398529dbebde7e983193c445e.tar.gz
nixlib-1869e7e5b0580e9398529dbebde7e983193c445e.tar.bz2
nixlib-1869e7e5b0580e9398529dbebde7e983193c445e.tar.lz
nixlib-1869e7e5b0580e9398529dbebde7e983193c445e.tar.xz
nixlib-1869e7e5b0580e9398529dbebde7e983193c445e.tar.zst
nixlib-1869e7e5b0580e9398529dbebde7e983193c445e.zip
Merge remote-tracking branch 'upstream/master' into HEAD
Diffstat (limited to 'nixos/modules')
-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";