anchor.diff:  
   let
     cfg = config.services.minio;
  +
  +  legacyCredentials = cfg: pkgs.writeText "minio-legacy-credentials" ''
  +    MINIO_ROOT_USER=${cfg.accessKey}
  +    MINIO_ROOT_PASSWORD=${cfg.secretKey}
  +  '';
   in
   {
     meta.maintainers = [ maintainers.bachp ];
  
positive.code:   };
  
    config = mkIf cfg.enable {
      systemd.tmpfiles.rules = [
        "d '${cfg.configDir}' - minio minio - -"
      ] ++ (map (x:  "d '" + x + "' - minio minio - - ") cfg.dataDir);
  
negative.code:       '';
      };
  
      rootCredentialsFile = mkOption  {
        type = types.nullOr types.path;
        default = null;
        description = ''
          File containing the MINIO_ROOT_USER, default is "minioadmin", and
          MINIO_ROOT_PASSWORD (length >= 8), default is "minioadmin"; in the format of
          an EnvironmentFile=, as described by systemd.exec(5).
        '';
        example = "/etc/nixos/minio-root-credentials";
      };
  
      region = mkOption {
        default = "us-east-1";
        type = types.str;
  