anchor.diff:    testScript = ''
       start_all()
   
  -    # Check that mastodon-media-auto-remove is scheduled
  -    server.succeed("systemctl status mastodon-media-auto-remove.timer")
  -
       server.wait_for_unit("nginx.service")
       server.wait_for_unit("redis-mastodon.service")
       server.wait_for_unit("postgresql.service")
  
positive.code:         configureNginx = true;
          localDomain = "mastodon.local";
          enableUnixSocket = false;
          redis = {
            createLocally = true;
            host = "127.0.0.1";
            port = 31637;
          };
          database = {
            createLocally = true;
            host = "/run/postgresql";
            port = 5432;
          };
          smtp = {
            createLocally = false;
            fromAddress = "mastodon@mastodon.local";
  
negative.code:     server.wait_for_open_port(55000)
      server.wait_for_open_port(55001)
  
      # Check that mastodon-media-auto-remove is scheduled
      server.succeed("systemctl status mastodon-media-auto-remove.timer")
  
      # Check Mastodon version from remote client
      client.succeed("curl --fail https://mastodon.local/api/v1/instance | jq -r '.version' | grep '${pkgs.mastodon.version}'")
  
      # Check access from remote client
      client.succeed("curl --fail https://mastodon.local/about | grep 'Mastodon hosted on mastodon.local'")
      client.succeed("curl --fail $(curl https://mastodon.local/api/v1/instance 2> /dev/null | jq -r .thumbnail) --output /dev/null")
  
      # Simple check tootctl commands
      # Check Mastodon version
      server.succeed("su - mastodon -s /bin/sh -c 'mastodon-env tootctl version' | grep '${pkgs.mastodon.version}'")
  
  