This commit is contained in:
2025-09-12 14:49:06 +03:00
parent e9c06eceb4
commit 7a47507277

View File

@@ -138,7 +138,7 @@ in
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}"]; loadCredentials = ["client-secret:${oauthClientSecretFP}"];
ExecStart = '' ExecStart = lib.mkForce ''
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`
''; '';