nixpkgs/nixos/modules
Brian Olsen 3a4459a305
nixos/rspamd: Support multiple workers
When the workers option for rspamd was originally implemented it was
based on a flawed understanding of how workers are configured in rspamd.
This meant that while rspamd supports configuring multiple workers of
the same type, so that different controller workers could have different
passwords, the NixOS module did not support this because it would write
an invalid configuration file if you tried.

Specifically a configuration like the one below:

```
workers.controller = {};
workers.controller2 = {
  type = "controller";
};
```

Would result in a rspamd configuration of:

```
worker {
  type = "controller";
  count = 1;
  .include "$CONFDIR/worker-controller.inc"
}
worker "controller2" {
  type = "controller";
  count = 1;
}
```

While to get multiple controller workers it should instead be:

```
worker "controller" {
  type = "controller";
  count = 1;
  .include "$CONFDIR/worker-controller.inc"
}
worker "controller" {
  type = "controller";
  count = 1;
}
```
2018-11-06 00:26:55 +01:00
..
config treewide: remove pkgs_i686 2018-11-03 00:56:39 -05:00
hardware treewide: remove pkgs_i686 2018-11-03 00:56:39 -05:00
i18n/input-method
installer Merge pull request #48801 from matthewbauer/cloneConfigExtra 2018-10-28 19:05:16 -05:00
misc Merge pull request #49670 from matthewbauer/pkgs-i686-remove 2018-11-04 12:49:09 -06:00
profiles Merge pull request #49326 from c0bw3b/nixos/installation-device 2018-10-30 14:13:59 +01:00
programs nixos: programs.bash: Fix comment about completion 2018-11-04 13:06:13 +01:00
security nixos/rngd: do not pass --version flag 2018-11-05 10:41:38 +01:00
services nixos/rspamd: Support multiple workers 2018-11-06 00:26:55 +01:00
system Merge pull request #49513 from dtzWill/fix/activation-nscd-path 2018-11-02 03:57:25 -05:00
tasks
testing
virtualisation Merge pull request #49670 from matthewbauer/pkgs-i686-remove 2018-11-04 12:49:09 -06:00
module-list.nix nixos/kapacitor: new service 2018-11-01 21:53:45 +01:00
rename.nix nixos/ddclient: fix #49258 2018-10-30 22:18:59 +01:00