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/websites/tools/mastodon | |
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/websites/tools/mastodon')
-rw-r--r-- | modules/private/websites/tools/mastodon/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/private/websites/tools/mastodon/default.nix b/modules/private/websites/tools/mastodon/default.nix index 97f2452..80d7431 100644 --- a/modules/private/websites/tools/mastodon/default.nix +++ b/modules/private/websites/tools/mastodon/default.nix | |||
@@ -1,6 +1,6 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | env = myconfig.env.tools.mastodon; | 3 | env = config.myEnv.tools.mastodon; |
4 | root = "/run/current-system/webapps/tools_mastodon"; | 4 | root = "/run/current-system/webapps/tools_mastodon"; |
5 | cfg = config.myServices.websites.tools.mastodon; | 5 | cfg = config.myServices.websites.tools.mastodon; |
6 | mcfg = config.services.mastodon; | 6 | mcfg = config.services.mastodon; |
@@ -50,14 +50,14 @@ in { | |||
50 | 50 | ||
51 | # LDAP authentication (optional) | 51 | # LDAP authentication (optional) |
52 | LDAP_ENABLED=true | 52 | LDAP_ENABLED=true |
53 | LDAP_HOST=ldap.immae.eu | 53 | LDAP_HOST=${env.ldap.host} |
54 | LDAP_PORT=636 | 54 | LDAP_PORT=636 |
55 | LDAP_METHOD=simple_tls | 55 | LDAP_METHOD=simple_tls |
56 | LDAP_BASE="dc=immae,dc=eu" | 56 | LDAP_BASE="${env.ldap.base}" |
57 | LDAP_BIND_DN="cn=mastodon,ou=services,dc=immae,dc=eu" | 57 | LDAP_BIND_DN="${env.ldap.dn}" |
58 | LDAP_PASSWORD="${env.ldap.password}" | 58 | LDAP_PASSWORD="${env.ldap.password}" |
59 | LDAP_UID="uid" | 59 | LDAP_UID="uid" |
60 | LDAP_SEARCH_FILTER="(&(%{uid}=%{email})(memberOf=cn=users,cn=mastodon,ou=services,dc=immae,dc=eu))" | 60 | LDAP_SEARCH_FILTER="${env.ldap.filter}" |
61 | ''; | 61 | ''; |
62 | }]; | 62 | }]; |
63 | services.mastodon = { | 63 | services.mastodon = { |