{...}: {
  environment.persistence."/srv".directories = [
    {
      directory = "/var/lib/mastodon";
      user = "mastodon";
      group = "mastodon";
      mode = "0700";
    }
  ];
}