anchor.diff:          after = [
             "postgresql.service"
           ];
  +      };
  +
  +      services.redis = {
  +        enable = true;
         };
   
         services.postgresql = {
  
positive.code:           memcached = false;
          };
          config = {
            #dbtype = "pgsql";
            dbname = "nextcloud";
            dbuser = "nextcloud";
            dbhost = "/run/postgresql";
  
negative.code:       # databyse type to postgres.
        environment.etc."nextcloud-secrets.json".text = ''
          {
            "redis": {
              "host": "/run/redis/redis.sock",
              "port": 0,
              "dbindex": 0,
              "password": "secret",
              "timeout": 1.5
            },
            "memcache": {
              "local": "\\OC\\Memcache\\Redis",
              "locking": "\\OC\\Memcache\\Redis"
            }
          }
        '';
      };
  