anchor.diff:            A yaml python logging config file
           '';
         };
  +      dataDir = mkOption {
  +        type = types.str;
  +        default = "/var/lib/matrix-synapse";
  +        description = ''
  +          The directory where matrix-synapse stores its stateful data such as
  +          certificates, media and uploads.
  +        '';
  +      };
       };
     };
   
  
positive.code:       preStart = ''
          ${cfg.package}/bin/homeserver \
            --config-path ${configFile} \
            --keys-directory /var/lib/matrix-synapse \
            --generate-keys
        '';
        serviceConfig = {
          Type = "simple";
          User = "matrix-synapse";
          Group = "matrix-synapse";
          WorkingDirectory = "/var/lib/matrix-synapse";
          PermissionsStartOnly = true;
          ExecStart = "${cfg.package}/bin/homeserver --config-path ${configFile} --keys-directory /var/lib/matrix-synapse";
          Restart = "on-failure";
        };
      };
  
negative.code: expire_access_token: ${boolToString cfg.expire_access_token}
  enable_metrics: ${boolToString cfg.enable_metrics}
  report_stats: ${boolToString cfg.report_stats}
  signing_key_path: "${cfg.dataDir}/homeserver.signing.key"
  key_refresh_interval: "${cfg.key_refresh_interval}"
  perspectives:
    servers: {
  