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/ftp.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/ftp.nix')
-rw-r--r-- | modules/private/ftp.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/private/ftp.nix b/modules/private/ftp.nix index 9b6a98f..e3c1f70 100644 --- a/modules/private/ftp.nix +++ b/modules/private/ftp.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | package = pkgs.pure-ftpd.override { ldapFtpId = "immaeFtp"; }; | 3 | package = pkgs.pure-ftpd.override { ldapFtpId = "immaeFtp"; }; |
4 | in | 4 | in |
@@ -55,17 +55,17 @@ in | |||
55 | user = "ftp"; | 55 | user = "ftp"; |
56 | group = "ftp"; | 56 | group = "ftp"; |
57 | text = '' | 57 | text = '' |
58 | LDAPServer ${myconfig.env.ftp.ldap.host} | 58 | LDAPServer ${config.myEnv.ftp.ldap.host} |
59 | LDAPPort 389 | 59 | LDAPPort 389 |
60 | LDAPUseTLS True | 60 | LDAPUseTLS True |
61 | LDAPBaseDN ${myconfig.env.ftp.ldap.base} | 61 | LDAPBaseDN ${config.myEnv.ftp.ldap.base} |
62 | LDAPBindDN ${myconfig.env.ftp.ldap.dn} | 62 | LDAPBindDN ${config.myEnv.ftp.ldap.dn} |
63 | LDAPBindPW ${myconfig.env.ftp.ldap.password} | 63 | LDAPBindPW ${config.myEnv.ftp.ldap.password} |
64 | LDAPDefaultUID 500 | 64 | LDAPDefaultUID 500 |
65 | LDAPForceDefaultUID False | 65 | LDAPForceDefaultUID False |
66 | LDAPDefaultGID 100 | 66 | LDAPDefaultGID 100 |
67 | LDAPForceDefaultGID False | 67 | LDAPForceDefaultGID False |
68 | LDAPFilter ${myconfig.env.ftp.ldap.filter} | 68 | LDAPFilter ${config.myEnv.ftp.ldap.filter} |
69 | 69 | ||
70 | LDAPAuthMethod BIND | 70 | LDAPAuthMethod BIND |
71 | 71 | ||