aboutsummaryrefslogtreecommitdiff
path: root/modules/private/mail/rspamd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/private/mail/rspamd.nix')
-rw-r--r--modules/private/mail/rspamd.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/private/mail/rspamd.nix b/modules/private/mail/rspamd.nix
index b5f64d8..4d55fc2 100644
--- a/modules/private/mail/rspamd.nix
+++ b/modules/private/mail/rspamd.nix
@@ -1,4 +1,4 @@
1{ lib, pkgs, config, myconfig, ... }: 1{ lib, pkgs, config, ... }:
2{ 2{
3 options.myServices.mail.rspamd.sockets = lib.mkOption { 3 options.myServices.mail.rspamd.sockets = lib.mkOption {
4 type = lib.types.attrsOf lib.types.path; 4 type = lib.types.attrsOf lib.types.path;
@@ -43,14 +43,14 @@
43 }; 43 };
44 locals = { 44 locals = {
45 "redis.conf".text = '' 45 "redis.conf".text = ''
46 servers = "${myconfig.env.mail.rspamd.redis.socket}"; 46 servers = "${config.myEnv.mail.rspamd.redis.socket}";
47 db = "${myconfig.env.mail.rspamd.redis.db}"; 47 db = "${config.myEnv.mail.rspamd.redis.db}";
48 ''; 48 '';
49 "classifier-bayes.conf".text = '' 49 "classifier-bayes.conf".text = ''
50 users_enabled = true; 50 users_enabled = true;
51 backend = "redis"; 51 backend = "redis";
52 servers = "${myconfig.env.mail.rspamd.redis.socket}"; 52 servers = "${config.myEnv.mail.rspamd.redis.socket}";
53 database = "${myconfig.env.mail.rspamd.redis.db}"; 53 database = "${config.myEnv.mail.rspamd.redis.db}";
54 autolearn = true; 54 autolearn = true;
55 cache { 55 cache {
56 backend = "redis"; 56 backend = "redis";
@@ -69,8 +69,8 @@
69 workers = { 69 workers = {
70 controller = { 70 controller = {
71 extraConfig = '' 71 extraConfig = ''
72 enable_password = "${myconfig.env.mail.rspamd.write_password_hashed}"; 72 enable_password = "${config.myEnv.mail.rspamd.write_password_hashed}";
73 password = "${myconfig.env.mail.rspamd.read_password_hashed}"; 73 password = "${config.myEnv.mail.rspamd.read_password_hashed}";
74 ''; 74 '';
75 bindSockets = [ { 75 bindSockets = [ {
76 socket = config.myServices.mail.rspamd.sockets.worker-controller; 76 socket = config.myServices.mail.rspamd.sockets.worker-controller;