anchor.diff:        description = "Docker registry storage path.";
       };
   
  +    enableDelete = mkOption {
  +      type = types.bool;
  +      default = false;
  +      description = "Enable delete for manifests and blobs.";
  +    };
  +
  +    enableRedisCache = mkOption {
  +      type = types.bool;
  +      default = false;
  +      description = "Enable redis as blob cache instade of inmemory.";
  +    };
  +
  +    redisUrl = mkOption {
  +      type = types.str;
  +      default = "localhost:6379";
  +      description = "Set redis host and port.";
  +    };
  +
  +    redisPassword = mkOption {
  +      type = types.str;
  +      default = "asecret";
  +      description = "Set redis password.";
  +    };
  +
       extraConfig = mkOption {
         description = ''
           Docker extra registry configuration via environment variables.
  
positive.code: 
  let
    cfg = config.services.dockerRegistry;
  
  in {
    options.services.dockerRegistry = {
  
negative.code:   };
  
    config = mkIf cfg.enable {
      environment.etc."docker/registry/config.yml".text = builtins.toJSON registryConfig;
  
      systemd.services.docker-registry = {
        description = "Docker Container Registry";
        wantedBy = [ "multi-user.target" ];
  