Compare commits
2 Commits
7a47507277
...
b8e6847217
Author | SHA1 | Date | |
---|---|---|---|
b8e6847217
|
|||
e5b10038b2
|
@@ -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`
|
||||||
'';
|
'';
|
||||||
|
Reference in New Issue
Block a user