diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-12 00:24:23 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-20 04:12:27 +0100 |
commit | ab8f306d7c2c49b8116e1af7b355ed2384617ed9 (patch) | |
tree | d1061ec0436fd096de2332a892eb984c63cb125e /modules/private/mail/dovecot.nix | |
parent | 4227853a03923e04daf3dd511a4b5a1ab5d527e7 (diff) | |
download | Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.gz Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.tar.zst Nix-ab8f306d7c2c49b8116e1af7b355ed2384617ed9.zip |
Add specification for the private config file as a module.
Diffstat (limited to 'modules/private/mail/dovecot.nix')
-rw-r--r-- | modules/private/mail/dovecot.nix | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/modules/private/mail/dovecot.nix b/modules/private/mail/dovecot.nix index 470fc1a..16053ea 100644 --- a/modules/private/mail/dovecot.nix +++ b/modules/private/mail/dovecot.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | sieve_bin = pkgs.runCommand "sieve_bin" { | 3 | sieve_bin = pkgs.runCommand "sieve_bin" { |
4 | buildInputs = [ pkgs.makeWrapper ]; | 4 | buildInputs = [ pkgs.makeWrapper ]; |
@@ -24,26 +24,26 @@ in | |||
24 | group = config.services.dovecot2.group; | 24 | group = config.services.dovecot2.group; |
25 | permissions = "0400"; | 25 | permissions = "0400"; |
26 | text = '' | 26 | text = '' |
27 | hosts = ${myconfig.env.mail.dovecot.ldap.host} | 27 | hosts = ${config.myEnv.mail.dovecot.ldap.host} |
28 | tls = yes | 28 | tls = yes |
29 | 29 | ||
30 | dn = ${myconfig.env.mail.dovecot.ldap.dn} | 30 | dn = ${config.myEnv.mail.dovecot.ldap.dn} |
31 | dnpass = ${myconfig.env.mail.dovecot.ldap.password} | 31 | dnpass = ${config.myEnv.mail.dovecot.ldap.password} |
32 | 32 | ||
33 | auth_bind = yes | 33 | auth_bind = yes |
34 | 34 | ||
35 | ldap_version = 3 | 35 | ldap_version = 3 |
36 | 36 | ||
37 | base = ${myconfig.env.mail.dovecot.ldap.base} | 37 | base = ${config.myEnv.mail.dovecot.ldap.base} |
38 | scope = subtree | 38 | scope = subtree |
39 | 39 | ||
40 | pass_filter = ${myconfig.env.mail.dovecot.ldap.filter} | 40 | pass_filter = ${config.myEnv.mail.dovecot.ldap.filter} |
41 | pass_attrs = ${myconfig.env.mail.dovecot.ldap.pass_attrs} | 41 | pass_attrs = ${config.myEnv.mail.dovecot.ldap.pass_attrs} |
42 | 42 | ||
43 | user_attrs = ${myconfig.env.mail.dovecot.ldap.user_attrs} | 43 | user_attrs = ${config.myEnv.mail.dovecot.ldap.user_attrs} |
44 | user_filter = ${myconfig.env.mail.dovecot.ldap.filter} | 44 | user_filter = ${config.myEnv.mail.dovecot.ldap.filter} |
45 | iterate_attrs = ${myconfig.env.mail.dovecot.ldap.iterate_attrs} | 45 | iterate_attrs = ${config.myEnv.mail.dovecot.ldap.iterate_attrs} |
46 | iterate_filter = ${myconfig.env.mail.dovecot.ldap.iterate_filter} | 46 | iterate_filter = ${config.myEnv.mail.dovecot.ldap.iterate_filter} |
47 | ''; | 47 | ''; |
48 | } | 48 | } |
49 | ]; | 49 | ]; |