Compare commits

..

2 Commits

Author SHA1 Message Date
b8e6847217 fix 2025-09-12 15:03:34 +03:00
e5b10038b2 fix 2025-09-12 15:02:04 +03:00

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 = lib.mkForce '' 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`
''; '';