anchor.diff:    };
   
     config = mkIf cfg.enable {
  +    warnings = optional ((cfg.accessKey != "") || (cfg.secretKey != "")) "services.minio.`accessKey` and services.minio.`secretKey` are deprecated, please use services.minio.`rootCredentialsFile` instead.";
  +
       systemd.tmpfiles.rules = [
         "d '${cfg.configDir}' - minio minio - -"
       ] ++ (map (x:  "d '" + x + "' - minio minio - - ") cfg.dataDir);
  
positive.code: 
  let
    cfg = config.services.minio;
  in
  {
    meta.maintainers = [ maintainers.bachp ];
  
negative.code:         User = "minio";
          Group = "minio";
          LimitNOFILE = 65536;
          EnvironmentFile = if (cfg.rootCredentialsFile != null) then cfg.rootCredentialsFile
                            else if ((cfg.accessKey != "") || (cfg.secretKey != "")) then (legacyCredentials cfg)
                            else null;
        };
        environment = {
          MINIO_REGION = "${cfg.region}";
          MINIO_BROWSER = "${if cfg.browser then "on" else "off"}";
        };
      };
  
  