anchor.diff:      };
   
       # Redis is required for the sidekiq queue runner.
  -    services.redis.enable = mkDefault true;
  +    services.redis.servers.gitlab = {
  +      enable = mkDefault true;
  +      port = mkDefault 31636;
  +      bind = mkDefault "127.0.0.1";
  +    };
   
       # We use postgres as the main data store.
       services.postgresql = optionalAttrs databaseActuallyCreateLocally {
  
positive.code: 
      systemd.services.gitlab-mailroom = mkIf (gitlabConfig.production.incoming_email.enabled or false) {
        description = "GitLab incoming mail daemon";
        after = [ "network.target" "redis.service" "gitlab-config.service" ];
        bindsTo = [ "gitlab-config.service" ];
        wantedBy = [ "gitlab.target" ];
        partOf = [ "gitlab.target" ];
  
negative.code:     redis = {
        bin = "${pkgs.redis}/bin/redis-cli";
        host = "127.0.0.1";
        port = config.services.redis.servers.gitlab.port;
        database = 0;
        namespace = "resque:gitlab";
      };
  