mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-05-05 02:00:50 +05:00
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:
parent
c2ca4d1bb0
commit
1822a4f045
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user