diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 17:40:07 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-10-16 20:20:45 +0200 |
commit | 4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0 (patch) | |
tree | 9a7ede9ac3f1899074e9ef568a447f883191d3b5 /modules/private/websites/tools/mastodon | |
parent | da30ae4ffdd153a1eb32fb86f9ca9a65aa19e4e2 (diff) | |
download | Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.gz Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.tar.zst Nix-4c4652aabf2cb3ac8b40f2856eca07a1df9c27e0.zip |
Use attrs for secrets instead of lists
Diffstat (limited to 'modules/private/websites/tools/mastodon')
-rw-r--r-- | modules/private/websites/tools/mastodon/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/private/websites/tools/mastodon/default.nix b/modules/private/websites/tools/mastodon/default.nix index cea8710..87e8d72 100644 --- a/modules/private/websites/tools/mastodon/default.nix +++ b/modules/private/websites/tools/mastodon/default.nix | |||
@@ -13,8 +13,7 @@ in { | |||
13 | services.duplyBackup.profiles.mastodon = { | 13 | services.duplyBackup.profiles.mastodon = { |
14 | rootDir = mcfg.dataDir; | 14 | rootDir = mcfg.dataDir; |
15 | }; | 15 | }; |
16 | secrets.keys = [{ | 16 | secrets.keys."webapps/tools-mastodon" = { |
17 | dest = "webapps/tools-mastodon"; | ||
18 | user = "mastodon"; | 17 | user = "mastodon"; |
19 | group = "mastodon"; | 18 | group = "mastodon"; |
20 | permissions = "0400"; | 19 | permissions = "0400"; |
@@ -59,7 +58,7 @@ in { | |||
59 | LDAP_UID="uid" | 58 | LDAP_UID="uid" |
60 | LDAP_SEARCH_FILTER="${env.ldap.filter}" | 59 | LDAP_SEARCH_FILTER="${env.ldap.filter}" |
61 | ''; | 60 | ''; |
62 | }]; | 61 | }; |
63 | services.mastodon = { | 62 | services.mastodon = { |
64 | enable = true; | 63 | enable = true; |
65 | configFile = config.secrets.fullPaths."webapps/tools-mastodon"; | 64 | configFile = config.secrets.fullPaths."webapps/tools-mastodon"; |