I need to connect Attiny with Arduino I2c

Welcome.

What are you trying to do in your project? If the project just involves 4 buttons and 4 leds, then you certainly don't need an extra Attiny for this. The single nano will do and you can use the millis() function for multitasking.

An Arduino I2C master and Attiny slave should work fine however, and here is a very good tutorial: Use I2C for communication between Arduinos. Keep the Arduino as the master and the Attiny as the slave, and have the master send requests to the slave if you need 2 way communication Master Requester Example