This commit is contained in:
2025-09-12 15:05:42 +03:00
parent b8e6847217
commit 25133ecf7c

View File

@@ -138,10 +138,10 @@ in
unitConfig.RequiresMountsFor = lib.mkIf sp.useBinds "/volumes/${cfg.location}/mastodon";
serviceConfig = {
loadCredentials = ["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)
${config.services.mastodon.package}/bin/puma -C config/puma.rb`
'';
'');
};
environment = {
OIDC_ENABLED = "true";