diff options
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 = { |