};
config = lib.mkIf cfg.enable {
+ mySecrets.keys = mastodon.keys;
ids.uids.mastodon = myconfig.env.tools.mastodon.user.uid;
ids.gids.mastodon = myconfig.env.tools.mastodon.user.gid;
serviceConfig = {
User = "mastodon";
- EnvironmentFile = mastodon.config;
+ EnvironmentFile = "/var/secrets/webapps/tools-mastodon";
PrivateTmp = true;
Restart = "always";
TimeoutSec = 15;
serviceConfig = {
User = "mastodon";
- EnvironmentFile = mastodon.config;
+ EnvironmentFile = "/var/secrets/webapps/tools-mastodon";
PrivateTmp = true;
Restart = "always";
TimeoutSec = 60;
serviceConfig = {
User = "mastodon";
- EnvironmentFile = mastodon.config;
+ EnvironmentFile = "/var/secrets/webapps/tools-mastodon";
PrivateTmp = true;
Restart = "always";
TimeoutSec = 15;