Compare commits

..

2 Commits

Author SHA1 Message Date
e6db25d6e9 fix 2025-09-12 16:46:24 +03:00
0c0b5bb29a fix 2025-09-12 16:45:49 +03:00

View File

@@ -130,7 +130,7 @@ in
services.mastodon-web = { services.mastodon-web = {
unitConfig.RequiresMountsFor = lib.mkIf sp.useBinds "/volumes/${cfg.location}/mastodon"; unitConfig.RequiresMountsFor = lib.mkIf sp.useBinds "/volumes/${cfg.location}/mastodon";
serviceConfig = { serviceConfig = {
loadCredentials = ["client-secret:${oauthClientSecretFP}"]; LoadCredential = ["client-secret:${oauthClientSecretFP}"];
ExecStart = lib.mkForce (pkgs.writeShellScript "run-mastodon-with-client-secret" '' ExecStart = lib.mkForce (pkgs.writeShellScript "run-mastodon-with-client-secret" ''
export CLIENT_SECRET=$(cat $CREDENTIALS_DIRECTORY/client-secret) export CLIENT_SECRET=$(cat $CREDENTIALS_DIRECTORY/client-secret)
${config.services.mastodon.package}/bin/puma -C config/puma.rb ${config.services.mastodon.package}/bin/puma -C config/puma.rb