set rspamd worker type depending on NixOS release

The worker type "proxy" was renamed to "rspamd_proxy"
in https://github.com/NixOS/nixpkgs/pull/49809.
This commit is contained in:
Robert Schütz 2018-11-24 16:09:57 +01:00
parent c2ca4d1bb0
commit 1822a4f045

View File

@ -42,7 +42,7 @@ in
'');
workers.rspamd_proxy = {
type = "proxy";
type = if (lib.versionAtLeast config.system.nixos.release "19.03") then "rspamd_proxy" else "proxy";
bindSockets = [{
socket = "/run/rspamd/rspamd-milter.sock";
mode = "0664";